1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    19
    Vote Rating
    0
    adrianbj is on a distinguished road

      0  

    Default Unanswered: PagingGridScroller not load the next page

    Unanswered: PagingGridScroller not load the next page


    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:
    Code:
     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

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    Answers
    124
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi,
    check this link http://dev.sencha.com/deploy/ext-4.0...te-scroll.html

    may be it will helpfull for you
    thanks

Thread Participants: 1