1. #1
    Sencha User
    Join Date
    Jun 2014
    Posts
    13
    Vote Rating
    0
    nckenn is on a distinguished road

      0  

    Default Client Side Paging!

    Client Side Paging!


    how can i implement client side pagination in grid panel. can anyone give me a complete example or just help me to fix my code.

    this is my model :
    Code:
    if (! Ext.ClassManager.isCreated('obligationModel')) {			Ext.define('obligationModel', {
    				extend: 'Ext.data.Model',
    				idProperty : 'obr_code',
    				fields: [
    				.......................
    				]
    			});
    		}
    store:
    Code:
    me.storeObligation = Ext.create('Ext.data.Store',{            id : 'Obligation',
                model : 'obligationModel',
    			autoLoad: false,
    			pageSize: 100,
                proxy : {
                    type: 'ajax',
                    url: 'Obligation.php',
                    method:'GET',
                    extraParams: { 
                        Module: 'dOBR',
                        option: 'Obligation',
                        action: 'List'
                    },	
                    reader: {
                        type : 'json',
                        root : 'data',
                        successProperty : 'success'
                    }
    				
                },
    			groupField: 'payee_name'
            });
    then i put this in my panel":
    Code:
    bbar: Ext.create('Ext.PagingToolbar', {									store: me.storePersonal,
    									displayInfo: true,
    									displayMsg: 'Displaying record(s) {0} - {1} of {2}',
    									emptyMsg: "No record(s) to display"
    								})

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2009
    Location
    Amsterdam, The Netherlands
    Posts
    245
    Vote Rating
    6
    Grolubao is on a distinguished road

      0  

    Default


    This will do exactly what you need:

    http://www.sencha.com/forum/showthre...gingStore-v0.5

Thread Participants: 1