PDA

View Full Version : PagingGridScroller not load the next page



adrianbj
4 May 2012, 3:18 PM
Greetings to All, I have a window that displays a grid which contains a remote store, according to the examples I saw it set to be infinite, however when I move the scroll in the grid that does not load the second page and keeps cycling in the first and not advancing.
Some of code here:


var gridstore = Ext.create('Ext.data.Store', {
fields:["id","processdefinitionkey","starttime","endtime"],
proxy: {
type: 'direct',
directFn: SAGM.direct.Conttroller.getAllProcessInstancesHistory,
reader: {
type: 'json',
root: 'records',
totalProperty: 'totalCount'
},
simpleSortMode: true,
filterParam: 'query',
encodeFilters: function(filters) {
return filters[0].value;
}
},
autoLoad: true,
buffered: true,
remoteSort: true,
pageSize: 20
});
Ext.applyIf(me, {
items: [
{
xtype: "gridpanel",
columns: [
{ xtype: 'rownumberer', width: 40, sortable: false },
{ header: 'Id', dataIndex: 'id', flex: 1 },
{ header: 'Proceso', dataIndex: 'processdefinitionkey', flex: 1},
{ header: 'Fecha Inicio', dataIndex: 'starttime', flex: 1},
{ header: 'Fecha Fin', dataIndex: 'endtime', flex: 1}
],
viewConfig:{
trackOver: false
},
store: gridstore,
flex: 1,
height: 365,
verticalScroller:{
xtype:"paginggridscroller",
activePrefetch: false
}
}
]});


The server response data to fill two pages, but this only loads the first. Are there any additional configuration I get this to work?, I appreciate any help

sword-it
9 May 2012, 2:19 AM
Hi,
check this link http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/grid/infinite-scroll.html

may be it will helpfull for you
thanks