1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    8
    Vote Rating
    0
    amedina is on a distinguished road

      0  

    Default Paging Memory Proxy

    Paging Memory Proxy


    Can some one write an example how to use the Paging Memory Proxy. I want to create a paging on a grid.

    This is my code

    Ext.Loader.setConfig({ enabled: true });
    Ext.Loader.setPath('Ext.ux', 'ux/');

    Ext.require([
    'Ext.data.*',
    'Ext.tip.QuickTipManager',
    'Ext.form.*',
    'Ext.ux.data.PagingMemoryProxy',
    'Ext.grid.Panel'
    ]);



    Ext.define('Cases', {
    extend: 'Ext.data.Model',
    fields: ['nocase', 'client']
    });



    var store_cases = Ext.create('Ext.data.Store', {
    model: 'Cases',
    pageSize: 25,
    remoteSort: true,
    sorters: ['nocase', 'client'],
    proxy: {
    type:'pagingmemory',
    url: 'getrecords.jsp',
    reader: {
    type: 'json'
    , root: 'rows'
    }
    }
    });


    var grid_2 = Ext.create('Ext.grid.Panel', {
    frame: false,
    collapsible: false,
    store: store_casos,
    columns: [
    { text: "Num Case", flex: 1, dataIndex: 'nocase' }
    , { text: "Client", flex: 1, dataIndex: 'client' }


    ]

    ,

    bbar: Ext.create('Ext.PagingToolbar', {
    store: store_cases,
    pageSize: 25,
    displayInfo: true,
    displayMsg: 'Total {2}',
    emptyMsg: "Nothing here"

    }),

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    227
    Vote Rating
    1
    alphadogg is on a distinguished road

      0  

    Default


    I believe the Paging Memory Proxy allows one to use paging in a grid with in memory dataset, not with remote data.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    4
    Vote Rating
    0
    xuefli is on a distinguished road

      0  

    Default How can I use Ext.ux.data.PagingMemoryProxy in sencha Designer

    How can I use Ext.ux.data.PagingMemoryProxy in sencha Designer


    the reason use Ext.ux.data.PagingMemoryProxy is that,when I import data from upload file component, I want to see every data's processed result in grid,and the processed result return by remote service, it store in memory proxy.
    when there are a lot of data,I need page the data.

    How I can use
    Ext.ux.data.PagingMemoryProxy in sencha Designer2.0

  4. #4
    Sencha Premium Member
    Join Date
    Dec 2009
    Location
    Rhode Island
    Posts
    231
    Vote Rating
    23
    dmulcahey will become famous soon enough dmulcahey will become famous soon enough

      0  

    Default


    Maybe the alternative i just posted will help. Take a look at this and let me know if this helps you.