1. #261
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    ash4aque is on a distinguished road

      0  

    Default


    Thanks a lot!!!

  2. #262
    Sencha User
    Join Date
    Feb 2012
    Posts
    13
    Vote Rating
    0
    perseusy is on a distinguished road

      0  

    Question Hoping there is a ExtJS 4.x version

    Hoping there is a ExtJS 4.x version


    PagingMemoryProxy really limited every operation in "current page".....
    Why not just enhance the MemoryStore to support paging?

  3. #263
    Sencha User
    Join Date
    Mar 2012
    Posts
    1
    Vote Rating
    0
    Hisamitsu is on a distinguished road

      0  

    Default


    Quote Originally Posted by Buzzwords View Post
    Ignore my previous question. I've found the functionality I was looking for. PagingMemoryProxy is just what I needed. It allows Ext.toolbar.Paging to control paging of local data contained in an Ext.data.Store. Very helpful! The code behind the Sliding Pager example under the Extjs4 Grid Examples clearly demonstrates usage.
    Thank you!!

  4. #264
    Sencha User
    Join Date
    Feb 2009
    Posts
    10
    Vote Rating
    0
    makiavelli is on a distinguished road

      0  

    Default


    Has anyone example for PagingJsonStore for ExtJs 4?
    I need to store all remote data in local store with paging.
    Ang use this store for grid with filtering and reloading.
    But I cant find any solution with remote data.

  5. #265
    Sencha User
    Join Date
    Feb 2012
    Posts
    13
    Vote Rating
    0
    perseusy is on a distinguished road

      0  

    Default my paging grid sample using local data with filters and celleditors

    my paging grid sample using local data with filters and celleditors


    Grid definition:
    Code:
    Ext.define('myGrid', {
        extend: 'Ext.panel.Panel',
     alias: 'widget.mygrid',
        layout: {
            type: 'border'
        },
     requires: [
      'Ext.grid.*',
      'Ext.data.*',
      'Ext.toolbar.Paging',
      'Ext.ux.grid.FiltersFeature'
     ],
     
     defaults: {
      split: true
     },
     
     initComponent: function() {
      Ext.log({
       msg: Ext.getClassName(this) + '.initComponent: ' + 'start',
       level: 'info',
       stack: false
      });
      
      this.items = [{
       xtype: 'gridpanel',
       itemId: 'grdSearchResult',
       region: 'center',
       forceFit: false,
       selType: 'cellmodel',
       columns: [{
        xtype: 'gridcolumn',
        itemId: 'colNameSpace',
        text: 'Name Space',
        sortable: true,
        hideable: false,
        menuDisabled: false,
        draggable: true,
        groupable: false,
        dataIndex: 'name_space',
        minWidth: 100,
        filter: {
         type: 'string'
        },
        editor: {
         xtype: 'textfield',
         readOnly : true
        }
       }],
       plugins: [
        Ext.create('Ext.grid.plugin.CellEditing', {
         clicksToEdit: 2
        })
       ],
       features: [{
        ftype: 'filters',
        encode: false,  // json encode the filter query
        local: true  // defaults to false (remote filtering)
       }],
       dockedItems: [{
        xtype: 'pagingtoolbar',
        itemId: 'tbrPaging',
        dock: 'bottom',
        displayInfo: true,
        displayMsg: 'Displaying {0} - {1} of {2}',
        emptyMsg : 'No data to display',
        items: [
        '-',
        {
         xtype: 'numberfield',
         itemId: 'nbfPageSize',
         fieldLabel: 'Records Per Page',
         labelAlign: 'right',
         value: 20,
         size: 5,
         minValue: 1,
         allowDecimals: false
        },
        '-',
        {
         xtype: 'button',
         itemId: 'btnClearFilter',
         text: 'Clear All Filters'
        }]
       }],
       viewConfig: {
       }
      }];
      
      this.callParent(arguments);
        }
    });
    My controller definition:
    Code:
    Ext.define('myController', {
        extend: 'Ext.app.Controller',
     
        init: function() {
      var me = this;
      
            this.control({
               '.mygrid > #grdSearchResult > #tbrPaging > #nbfPageSize': {
        'change': {fn: this.setPageSize, scope: this, single: false}
                },
                '.mygrid > #grdSearchResult > #tbrPaging > #btnClearFilter': {
                    'click': {fn: this.clearFilter, scope: this, single: false}
                }
             });
        },
        
     doSearch: function(grdResult) {
      var me = this;
      var tbrPaging = grdResult.child('#tbrPaging');
      var nbfPageSize = tbrPaging.child('#nbfPageSize');
      
      var arrayTable = new Array();
      
      //get all data in arrayTable
      
      var pagingStore = grdResult.getStore();
      if (pagingStore) pagingStore.removeAll(false);
      
      pagingStore = Ext.create('myStore');
      grdResult.reconfigure(pagingStore);
      tbrPaging.bindStore(pagingStore);
      
      pagingStore.getProxy().data = arrayTable;
      pagingStore.pageSize = nbfPageSize.getValue();
      pagingStore.load();
     },
      setPageSize: function(fieldThis, newValue, oldValue, eOpts) {
      var grdSearchResult = fieldThis.up('#tbrPaging').up('#grdSearchResult');
      var store = grdSearchResult.getStore();
      if (store) store.pageSize = fieldThis.getValue();
     },
     
       clearFilter: function(fieldThis, event, eOpts) {
      var grdSearchResult = fieldThis.up('#tbrPaging').up('#grdSearchResult');
      grdSearchResult.filters.clearFilters();
     }
    });
    The store:
    Code:
    Ext.define('myStore', {
        extend: 'Ext.data.Store',
        model: 'myModel',
     
     requires: [
      'Ext.ux.data.PagingMemoryProxy'
     ],
     
     autoLoad: false,
     pageSize: 20,
     proxy: {
      type: 'pagingmemory',
      reader: {
       type: 'json'
      }
     }
    });
    The Model:
    Code:
    Ext.define('myModel', {
        extend: 'Ext.data.Model',
        fields: [
            {name: 'name_space', type: 'string'}
        ]
    });

  6. #266
    Sencha User
    Join Date
    Mar 2012
    Posts
    3
    Vote Rating
    0
    theWalli is on a distinguished road

      0  

    Default


    Thanks for this example.
    I tried to rebuild your code but i can't get it working.
    The toolbar is visible and shows the correct numbers. eg.
    at the moment I have 21 records and a page size of 10.
    It shows that there are 3 pages etc. but on every page I can see all of my 21 records...

    Can you post a snippet where the data is loaded too?

  7. #267
    Sencha User
    Join Date
    Feb 2009
    Posts
    10
    Vote Rating
    0
    makiavelli is on a distinguished road

      0  

    Default


    I also tried without any result. Can you provie snippet?

  8. #268
    Sencha User
    Join Date
    Feb 2012
    Posts
    13
    Vote Rating
    0
    perseusy is on a distinguished road

      0  

    Default


    I am on my vacation right now and will post later.


    --- I had updated the post adding the definition of store and model.

  9. #269
    Sencha User
    Join Date
    Dec 2011
    Posts
    16
    Vote Rating
    0
    PrashanthShetty is on a distinguished road

      0  

    Default Regarding Grid Filtering in PagingMemory Proxy

    Regarding Grid Filtering in PagingMemory Proxy


    Hi,

    We are using Extjs 4.1 pagingMemoryProxy for one of our requirements.

    Presently we see issue in Grid filtering in the same.
    1. Load Grid with 10 items per page of 50 records
    2. Try Filtering in the First column, with the textvalue which is there in last page of store
    3. Filtered data is not paginated correctly, meaning if the filtered record is in 5th Page, Then user has to navigate to 5th page to see the records & all the other 4 pages says No Records in Grid.
    Please let us know if any fix/work arround for this issue.

    Thanks,
    Prashanth
    Thanks,
    Prashanth

  10. #270
    Sencha User
    Join Date
    Jun 2012
    Posts
    1
    Vote Rating
    0
    hensor is on a distinguished road

      0  

    Default Problems when adding several records to the store.

    Problems when adding several records to the store.


    I'm loading rows into my gridpanel via several loads, where I add the new rows to the excisting store. This does not play well with PagingStore. Are there some sort of fix/hack for this to be supported as well?

    I'm using v0.5 and ExtJS 3.3.1.

Thread Participants: 106

  1. Animal (3 Posts)
  2. galdaka (2 Posts)
  3. cgi-bin (4 Posts)
  4. tchitani (4 Posts)
  5. tobiu (1 Post)
  6. steffenk (1 Post)
  7. renaudham (1 Post)
  8. markpele (1 Post)
  9. Sesshomurai (1 Post)
  10. teddyjas (5 Posts)
  11. buergi (2 Posts)
  12. Buzzwords (2 Posts)
  13. tomcheng76 (4 Posts)
  14. kveeiv (1 Post)
  15. dhisnotnull (2 Posts)
  16. walldorff (1 Post)
  17. brizardh (2 Posts)
  18. elizard (1 Post)
  19. Remy (1 Post)
  20. renoye (8 Posts)
  21. despay (1 Post)
  22. lwexler (2 Posts)
  23. tomim (1 Post)
  24. Mjollnir26 (1 Post)
  25. allenlako (3 Posts)
  26. Andrea Gioia (1 Post)
  27. wp.joju (1 Post)
  28. genio (2 Posts)
  29. 828 (1 Post)
  30. ljschrenk (4 Posts)
  31. diablo (3 Posts)
  32. blakel (1 Post)
  33. Grolubao (2 Posts)
  34. makiavelli (2 Posts)
  35. elesel (1 Post)
  36. Capt.JackSparrow (2 Posts)
  37. ferryman (3 Posts)
  38. cwford (1 Post)
  39. 3dm (1 Post)
  40. imnilesh (1 Post)
  41. Rotterdam (2 Posts)
  42. nandubochkar (1 Post)
  43. Dustin Graham (1 Post)
  44. Boing (2 Posts)
  45. tdteti_ (8 Posts)
  46. vtulin (2 Posts)
  47. hello (1 Post)
  48. PranKe01 (2 Posts)
  49. jbusuulwa (6 Posts)
  50. cwilson (1 Post)
  51. ronaldploeger (1 Post)
  52. scblue (1 Post)
  53. saadkhan (2 Posts)
  54. subbugv (6 Posts)
  55. p3p3 (1 Post)
  56. computeraholic (1 Post)
  57. calabacita (3 Posts)
  58. aghextjs (1 Post)
  59. Arindam Das (1 Post)
  60. aw_zahid (1 Post)
  61. deister (1 Post)
  62. billprince (1 Post)
  63. amol.gaikwad (2 Posts)
  64. george4rotech (7 Posts)
  65. leonrenkema (1 Post)
  66. mvassau (1 Post)
  67. aDoF96 (2 Posts)
  68. attack11 (3 Posts)
  69. chakrics (1 Post)
  70. thangamalar (3 Posts)
  71. mayurid (1 Post)
  72. Lobo (1 Post)
  73. christian130 (3 Posts)
  74. elbino (3 Posts)
  75. eashwaranp (1 Post)
  76. atul.sachan@capgemini.com (3 Posts)
  77. Joe Kuan (1 Post)
  78. kent78 (4 Posts)
  79. dsk1962 (1 Post)
  80. Woodlander (3 Posts)
  81. msmolyak (1 Post)
  82. mond (4 Posts)
  83. anandhasubha (1 Post)
  84. David Warren (1 Post)
  85. colinm (2 Posts)
  86. sothea (1 Post)
  87. incanus (1 Post)
  88. MarceloCajr (1 Post)
  89. knackwurst (1 Post)
  90. Pattie (1 Post)
  91. parnold3 (1 Post)
  92. StanimirPanchev (1 Post)
  93. palashkumar1010 (1 Post)
  94. ash4aque (3 Posts)
  95. farfar (3 Posts)
  96. PrashanthShetty (1 Post)
  97. brprashanth (2 Posts)
  98. perseusy (3 Posts)
  99. theWalli (1 Post)
  100. hieu79vn (1 Post)
  101. Hisamitsu (1 Post)
  102. hensor (1 Post)
  103. northmh (3 Posts)
  104. parax (1 Post)
  105. PankajG (1 Post)
  106. reedcat (1 Post)
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."