Hi all,
I have a extjs grid end I would add a preload when the store load the records.
I found this thread
http://extjs.com/forum/showthread.php?p=22065
But the solution doesn't work. The thread is dated in 2007 end i wouldn't that is old!
This is main code of my grid
Code:
grid = new Ext.grid.EditorGridPanel({
store: store,
loadMask : true,
enableColLock:false,
bufferResize: true,
columnLines: true,
height:320,
split: true,
clicksToEdit:2,
region:'north',
shadow:true,
animCollapse: true,
hideCollapseTool:true,
frame:true,
plain:false,
autoExpandColumn: 'nome_struttura',
selModel: csm,
style: 'padding-top:5px;',
cm: grid_bounces_ColumnModel,
bbar: new Ext.PagingToolbar({
pageSize: 10,
store: store_bounces,
displayInfo: true,
displayMsg: 'Ritorni Visualizzati <b>{1}</b> di <b>{2}</b>',
emptyMsg: '<b>Non sono presenti ritorni.</b>',
plugins: new Ext.ux.SlidingPager()
}),
viewConfig:{
forceFit:true
}
});
store.load({params: {start: 0, limit: 10});
And this is the main code of my dataStore:
Code:
store = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: directory+page,
method: 'POST'
}),
baseParams:{task: "LISTING_BOUNCES"},
reader: new Ext.data.JsonReader({
root: 'root',
totalProperty: 'totalCount',
id: 'id'
},[
{name: 'id', type: 'int'}
.....
])
});
Help plz! Thanks!