PDA

View Full Version : How to load data to form? migrate 3 to 4



oxygen
26 Aug 2011, 7:08 AM
hello,who can give me a example code for loading data to ext.form.panel.

in extjs 3.X i can set json reader for formpanel.

reader: new Ext.data.JsonReader({
root: 'root'
}, [{.................

but in extjs 4.0.2a i can not find any code for load data to form.panel. Thanks!!!

skirtle
29 Aug 2011, 3:01 AM
Please use code tags when posting code (# button on the editor toolbar).

It seems to still exist:

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.Basic-cfg-reader