PDA

View Full Version : BasicDialog Content



charlie262
21 May 2007, 10:00 AM
I'm an experienced C++/C# programmer but woefully new to the Javascript world. I can't find an example that shows how to create an EXT BasicDialog with some fields that aren't buttons. I can create whizzy dialogs with tabs and buttons, but I need radio buttons, check boxes, edit fields, etc. Can anyone help?

Normally I can Google my way to some code but I'm not having much luck this morning.

Thanks in advance,


Charlie

Animal
21 May 2007, 10:46 AM
There are examples to do everything you want. You'll just have to look at several.

Look at the Form examples, and put a Form in your Dialog.

tryanDLS
21 May 2007, 10:57 AM
The dialog's body element can contain whatever you want. There are a couple ways to go:
1) If creating the dialog from an existing DIV, you could just code an HTML form with your form elements inside the body DIV. Then you could follow the combos example to wrap them in Ext objects.
2) You could also auto-create the form elements inside the body div, like the dynamic form example does - your render target is the body element.
3) You could load the form HTML from another server snippet into the body via Ajax. Then create Ext for objects around your form fields, using the applyTo fn (like the combos example).

charlie262
21 May 2007, 11:45 AM
Thanks for the quick replies, guys.

I didn't initially grok the connection between forms and dialogs. I'm off and running.