1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    29
    Vote Rating
    0
    ryanewing is on a distinguished road

      0  

    Default Client Side Paging

    Client Side Paging


    I have spent a fair amount of time trying to get paging to work on the client side. I don't know how I am supposed to use Ext.data.PagingMemoryProxy or Ext.ux.data.PagingMemoryProxy with what I already have. Any tips?

    Code:
    // create the Data Store
        var ds = new Ext.data.Store({
    		proxy: new Ext.data.PagingMemoryProxy(monthArray),
    		reader: new Ext.data.ArrayReader({}, [
    			{name: 'month'}
    		])
    How does that coincide with what I already have?

    Code:
    MyDataStore = new Ext.data.Store({
          id: 'MyDataStore',
          proxy: new Ext.data.HttpProxy({
                    url: 'json.asp?date2=07%2F21%2F2008',      // File to connect to
            timeout: 90000        
                }),

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,459
    Vote Rating
    18
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Do an Ext.Ajax.request to retrieve the data from json.asp, and in the success handler, create the PagingMemoryProxy out of the returned data Array, and create the Store from that.