PDA

View Full Version : Ext.NestedList with DataStore json reloaded



SIDGEY
3 Aug 2010, 4:18 AM
Hello,

I would like to know if a datastore reloaded were planned for NestedList, because I have it one but it puts too many so much to charge ??





Ext.ns('SIDGEY');
SIDGEY.NestedListReload = Ext.extend(Ext.NestedList, {
initComponent: function() {
var config = {
title: 'Inventaire',
cls: 'info',
iconCls: 'favorites',
fullscreen: true,
items: [],
};
Ext.apply(this, config);
SIDGEY.NestedListReload.superclass.initComponent.call(this);

this.on('beforerender',this.RechargeStore.createDelegate(this),this);
}
,RechargeStore: function(){
myList =this;
Ext.util.JSONP.request({
url: 'php/Produits.php',
callbackKey: 'callback',
params: {task : 'LISTE_INV'},
callback: function(retour) {
data = retour.data
this.listIndex = 1;
this.setList(data, true);
}
,scope:this
});
}
,onRender : function(ct, position) {
SIDGEY.NestedListReload.superclass.onRender.call(this, ct, position);
}
});
Ext.reg('SIDGEY.NestedListReload', SIDGEY.NestedListReload);

SIDGEY
4 Aug 2010, 12:06 AM
nobody ?