not able to catch store events in Ext.ux.grid.livegrid.Store
not able to catch store events in Ext.ux.grid.livegrid.Store
Hi Guys,
I am trying to catch the store events(like 'load', 'beforeload','exception') in Ext.ux.grid.livegrid.Store
but i am not able to catch them i.e. code inside the listeners are not getting executed when i scroll the scrollbar and new data is loaded in store from server.
var mystore = new Ext.ux.grid.livegrid.Store({
// autoLoad : true,
url : GLOBALCONTEXTPATH+'/conflictContrlr/getDataForLiveGrid.do',
bufferSize : 40,
reader : new Ext.ux.grid.livegrid.JsonReader({
id: '_id',
root: 'data',
totalProperty: 'totalCount',
successProperty: 'success',
messageProperty : 'message',
versionProperty : 'version'
}, [ {
name : 'c1', type:'string'
},{
name : 'c2', type:'string'
},{
name : 'c3', type:'string'
},{
name : 'c4', type:'string'
},{
name : 'c5', type:'string'
},{
name : 'c6', type:'string'
}]),
sortInfo : {field: 'c1', direction: 'ASC'},
listeners : [{
'load' : function(){
alert('loaded');
}
}]
});
var myView1 = new Ext.ux.grid.livegrid.GridView({
loadMask : {
nearLimit : 35,
msg : 'Buffering. Please wait...'
}
});
Have you looked at the source for LiveGrid to see if they have created their own load events to support the range loads? Have a look at the code under /src ... start with Store.js