samedi 5 juillet 2014

ext js STORE LOAD EVENT

Hi,

Code:



me.store = Ext.create('Ext.data.Store', {
pageSize : parseInt(info.PageSize),
groupField: info.GroupBy,
fields: storeFields,
idProperty: 'Id',
noCache: true,
proxy : {
type: 'ajax',
url: info.Url,
reader: {
type: 'json',
root: 'Rows',
totalProperty: 'totalCount'
}
}
});

this code can load data. but on load event

Code:




me.store.on('load', function (sender, recs, opt) { if (component.loadStore != undefined) {
component.loadStore(sender, recs, opt);
}
}, component);

sender.data.items is empty. sender.data.autoSource.items is full.

what can i do





Aucun commentaire:

Enregistrer un commentaire