PDA

View Full Version : 2 questions about how to use FormPanel ?



seu31199113
12 Jan 2009, 7:50 PM
1. When I submit a FormPanel, how to lauch a waiting message bar like Ext?


2. When I show a FormPanel, how to stuff all fields according to a ModelData ? Must I set the values one by one?


Thanks for your kindly help.

gslender
12 Jan 2009, 8:40 PM
1. When I submit a FormPanel, how to lauch a waiting message bar like Ext?


Like what? give an example - you could add a StatusButtonBar to the panel or use el().mask(String)



2. When I show a FormPanel, how to stuff all fields according to a ModelData ? Must I set the values one by one?

Thanks for your kindly help.

Have a look at this ->> http://extjs.com/examples/binding/basicbinding.html

EagleEye666666
13 Jan 2009, 9:15 AM
1. When I submit a FormPanel, how to lauch a waiting message bar like Ext?


2. When I show a FormPanel, how to stuff all fields according to a ModelData ? Must I set the values one by one?


Thanks for your kindly help.

some good info point is the mail example and the loginDialog there it uses some nice loading statusbar.

PS: CHECK OUT the full examples which are already coming with GXT!!!!!! It's important There you can find almost everything!!!

sven
13 Jan 2009, 9:17 AM
1. When I submit a FormPanel, how to lauch a waiting message bar like Ext?

you can mask the FormPanel element:


formpanel.el().mask("Loading...");

or show a MessageBox with a progressbar:

http://extjs.com/deploy/gxtdocs/com/extjs/gxt/ui/client/widget/MessageBox.html#progress(java.lang.String,%20java.lang.String,%20java.lang.String)