1. #81
    Ext User
    Join Date
    Jan 2010
    Posts
    6
    Vote Rating
    0
    subbugv is on a distinguished road

      0  

    Default


    i jst learnt how to debug
    now it is showing the error in the below line tht this.load.proxy is not a function
    can any one suggest wht it means ?

    this.proxy.load(p, this.reader, this.loadRecords, this, options)
    Last edited by subbugv; 6 Jan 2010 at 3:08 AM. Reason: learnt to debug

  2. #82
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    86
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    That line is from Ext 2.x.

    You are mixing Ext 2 and 3 code!

  3. #83
    Ext User
    Join Date
    Jan 2010
    Posts
    6
    Vote Rating
    0
    subbugv is on a distinguished road

      0  

    Default


    sorry i overlook tht case... sorry for troubling u condor !!!!!!!!!

    but still when i am using ordinary store with pagingmemory proxy(version 3.1.0)
    still i have none returned from server.
    store is defined as follows..

    var
    store = new Ext.data.Store({
    proxy :
    new Ext.ux.data.PagingMemoryProxy({url: urlPath+'/pages/getForums.jsp?&pnode='+selectnodeId+'&userId='+userId+'&userName='+uName}),

    fields :[
    'postId','No','Subject','PostedBy','Replies','LastUpdated']

    });

    any idea ????

  4. #84
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    86
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    I really recommend using PagingStore instead of PagingMemoryProxy because of the advantages listed in the first post.

  5. #85
    Sencha Premium Member
    Join Date
    Mar 2008
    Posts
    92
    Vote Rating
    1
    kveeiv is on a distinguished road

      0  

    Default


    Condor - thanks for the great, easy to use extension. This made adding local paging a breeze and saved me a bunch of time and hassle of moving to PagingMemoryProxy or worse going back to the server again and again for a relatively small amount of data.

    I have only worked with PagingStore for the first time today, but naturally I have come across the problem you outline here (pretty common I imagine, for anyone with filtering):

    Quote Originally Posted by Condor View Post
    Yes, that's the problem I described.

    1. Go to page 15 (shows records 71-75)
    2. Filter the records (e.g. 10 remaining)
    3. Page 15 shows as blank (technically correct)
    4. Go to page 1 (shows records 1-5)

    Filtering (and probably sorting too) should reset the page to 1.
    Since PagingStore has taken over the responsibility of providing the paged data, I thought it might be appropriate to try and put some form of a bounds-checking solution in that class. This is a really small change that implements your suggestion to auto-reset to page 1 only in cases that match your above description. PagingToolbar seems to behave at least as well as it did without this change (which is to say, not perfectly, but not worse). Do you have any thoughts on this approach?

    Code:
        applyPaging: function() {
            var start = this.start, limit = this.limit;
            if ((typeof start == 'number') && (typeof limit == 'number')) {
                var allData = this.data, data = new Ext.util.MixedCollection(allData.allowFunctions, allData.getKey);
                if (start > allData.getCount()) {
                    start = this.start = 0;
                }
                data.items = allData.items.slice(start, start + limit);
                data.keys = allData.keys.slice(start, start + limit);
                var len = data.length = data.items.length;
                var map = {};
                for (var i = 0; i < len; i++) {
                    var item = data.items[i];
                    map[data.getKey(item)] = item;
                }
                data.map = map;
                this.allData = allData;
                this.data = data;
            }
        }

  6. #86
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    86
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Yes, that would be a good way to handle this, but you also need a way to apply this to the options object used in the load(), otherwise the paging toolbar doesn't show it's on the first page.

  7. #87
    Ext JS Premium Member
    Join Date
    Oct 2008
    Posts
    8
    Vote Rating
    0
    allenlako is on a distinguished road

      0  

    Default


    Just wanted to report a change that the PagingStore needs to make in order to be compatible with 3.1. In version 3.1, the JSONWriter discontinued the use of the write function and has changed it to the apply function. apply(params,baseParams,action, records). PagingStore will need to swap out write with apply.

  8. #88
    Ext User calabacita's Avatar
    Join Date
    Feb 2010
    Posts
    5
    Vote Rating
    0
    calabacita is on a distinguished road

      0  

    Exclamation The same records in all pages

    The same records in all pages


    Hello Condor,

    I'm trying to paginate the results in a search. The result is shown in a GridPanel, and I am using PagingStore to paginate in local mode.
    The problem is that the same first fetched results appear in all of the pages in the grid, althought the bottom toolbar change.

    This is my relevant code:

    Code:
    var busquedaRecord = new Ext.data.Record.create([  
         {name: 'codIG', type: 'string'},  
         {name: 'aplicacion', type: 'string'},  
         {name: 'proceso', type: 'string'},
         {name: 'estado', type: 'string'},  
         {name: 'criticidad', type: 'string'},  
         {name: 'descripcion', type: 'string'},
         {name: 'fecha', type: 'date', format: 'd/m/Y'} 
    ]); 
        
    
    var readerJson = new Ext.data.JsonReader({
        root : 'items',
        successProperty : 'success',        
        totalProperty : 'rowNumber'
    },busquedaRecord
    
    );    
    
    var result = new Ext.ux.data.PagingStore({
        reader: readerJson,
        lastOptions: {params: {start:0, limit:5}}
    });
    
    var columns = [
       {header: "C&oacute;digo IG", width: 70, sortable: true, dataIndex: 'codIG'},
       {header: "Aplicaci&oacute;n", width: 75, sortable: true, dataIndex: 'aplicacion'},
       {header: "Proceso", width: 75, sortable: true, dataIndex: 'proceso'},
       {header: "Estado", width: 75, sortable: true, dataIndex: 'estado'},
       {header: "Criticidad", width: 70, sortable: true, dataIndex: 'criticidad'},
       {id:'descripcion',header: "Descripci&oacute;n", width: 250, sortable: true, dataIndex: 'descripcion'},
       {header: "Fecha creaci&oacute;n", width: 85, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'fecha'}
    ];
    
    var paging = new Ext.PagingToolbar({  
        pageSize: 5, 
        store: result, 
        displayInfo: true,   
        displayMsg: 'Mostrando  {0} - {1} de {2}',  
        emptyMsg: "No existen datos",
        listeners: {
            onLoad: function(){
                //delete this.store.lastParams;
                //this.doLoad(this.cursor);
                var options = Ext.apply({add: append}, this.lastOptions ? this.lastOptions.params : null, this.baseParams);
                this.isPaging(options);
                var r = this.reader.readRecords(o);
                this.loadRecords(r, options, true);
            }
    });
    
    var busquedaGrid = new Ext.grid.GridPanel({
        view: new Ext.grid.GridView(),
        store : result,
      columns: columns,
      autoExpandColumn: 'descripcion',
      bbar :  paging,
      height:250,
      width:600
    });
    
    var frmIzq = new Ext.FormPanel ({
    
       ...
            buttons :[{
                text: 'Buscar',
                   iconCls : 'silk-magnifier',
                   handler : function(){
                    if(frmIzq.getForm().isValid()){
                        frmIzq.getForm().submit({
                            url: 'ServletBuscar',
                            method:'POST',
                            failure: ...  
                            success: function (form, request) {  
                                result = new Ext.ux.data.PagingStore({
                                     reader: readerJson,
                                     data:Ext.util.JSON.decode(request.response.responseText),
                                     lastOptions: {params: {start: 0, limit:5}}
                                 }); 
                              
                                busquedaGrid.store = result;
                          
                                paging.bindStore(busquedaGrid.getStore());
                                busquedaGrid.footer = paging;
                                 
                                busquedaGrid.render(); 
                                result.load({params:{start:0, limit:5}});
                                  
                                busquedaGrid.store.commitChanges();
                                busquedaGrid.getView().refresh();
                            }
                        });
                        
                    }
                 }
             }
    });
    I've try using PagingMemoryProxy, but the result is the same!!!

    Thanks in advance for you help!
    kind regards.

    Little Pumpkin

  9. #89
    Ext User calabacita's Avatar
    Join Date
    Feb 2010
    Posts
    5
    Vote Rating
    0
    calabacita is on a distinguished road

      0  

    Default


    in my opinion, the toolbar paginates correctly, but doesn't show the changes in the grid...how can i solve it?

    Pleasee I need some help!
    Thanks a lot!!

    Little Pumpkin.

  10. #90
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    86
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Quote Originally Posted by calabacita View Post
    in my opinion, the toolbar paginates correctly, but doesn't show the changes in the grid...how can i solve it?
    You could try this patch.

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..." hd porno faketaxi