View Full Version : Independent Pop-up Form
charles.dumont
15 Nov 2007, 12:29 PM
I'm having trouble isolating this enough to search it properly and was hoping that somebody would be able to point me at some guidance here. I have an ext-js menu that needs to trigger a pop-up/alert box/? that contains a form with a single dynamically generated either set of radio buttons or a select box. I'm looking for the best approach with ext-js 1.1 to create this pop up box. Thank you
tryanDLS
15 Nov 2007, 2:01 PM
Your menu handler fires the window build/show functionality. This is already done for you in hello dialog example, you just have to trigger from a different handler.
rouvas
16 Nov 2007, 2:40 PM
I would also render the form on the 'show' event of the dialog, especially if you have a combobox. Same holds true, to my experience for date fields.
I presume, that until the dialog is shown, the z-index is not known, so the combobox widget does not render itself correctly. (I may be wrong about this, I haven't checked the source).
Also, remember to check that the dialog has not been already rendered before rendering the form, else you will end up with a different instance of the form every time the dialog is shown.
-Stathis
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.