PDA

View Full Version : [CLOSED]LoadData on an ArrayStore Appears Broken



maslofer
28 Feb 2011, 2:07 PM
I can initialize the store with the "data" property. But LoadData on the ArrayStore fails.

evant
28 Feb 2011, 7:11 PM
In Ext4 loadData expects data in the format of:



store.loadData([{
field1: 'foo1',
field2: 'bar1'
}, {
field1: 'foo2',
field2: 'bar2'
}]);

ypandey
23 Mar 2014, 4:30 AM
Why loadData doesn't use reader?
Ideally when user is using array reader then loadData should take data in same format what load takes!
What do you say?

evant
23 Mar 2014, 4:54 AM
Use: http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.data.Store-method-loadRawData

ypandey
23 Mar 2014, 8:27 AM
Use: http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.data.Store-method-loadRawData
Thanks :)