1. #241
    Ext JS Premium Member
    Join Date
    Aug 2010
    Posts
    19
    Vote Rating
    0
    eashwaranp is on a distinguished road

      0  

    Default


    I ran into the same problem as msmolyak above. My page has 2 grids. One uses JsonStore, and one uses this PagingArrayStore. The PagingStore.js seems to 'replace' the Ext.data.*Store code just like you mention here.

    I saw how the constructor for the 4 extension were assigned to their Ext.data.*Store counterparts. I felt this could be a cause. I replaced these constructor assignments with functions that call the respective Ext.data.*Store constructors. This seems to work. This could be because a new object is returned with the constructor function this way.
    Here is the fix. It may be incomplete in some respects, but it seems to fix the current issue:
    Code:
    Ext.ux.data.PagingDirectStore = Ext.extend(Ext.ux.data.PagingStore, {
        constructor: function(){
        	Ext.data.DirectStore.prototype.constructor.call(this);
        }
    });
    Ext.reg('pagingdirectstore', Ext.ux.data.PagingDirectStore);
    
    Ext.ux.data.PagingJsonStore = Ext.extend(Ext.ux.data.PagingStore, {
        constructor: function(){
            Ext.data.JsonStore.prototype.constructor.call(this);
        }
    });
    Ext.reg('pagingjsonstore', Ext.ux.data.PagingJsonStore);
    
    Ext.ux.data.PagingXmlStore = Ext.extend(Ext.ux.data.PagingStore, {
        constructor: function(){
        	Ext.data.XmlStore.prototype.constructor.call(this);
        }
    });
    Ext.reg('pagingxmlstore', Ext.ux.data.PagingXmlStore);
    
    Ext.ux.data.PagingArrayStore = Ext.extend(Ext.ux.data.PagingStore, {
        constructor: function(){
        	Ext.data.ArrayStore.prototype.constructor.call(this);
        },   
        loadData: function (data, append) {
            if (this.expandData === true) {
                var r = [];
                for (var i = 0, len = data.length; i < len; i++) {
                    r[r.length] = [data[i]];
                }
                data = r;
            }
            Ext.ux.data.PagingArrayStore.superclass.loadData.call(this, data, append);
        }
    });
    Ext.reg('pagingarraystore', Ext.ux.data.PagingArrayStore);

  2. #242
    Sencha User
    Join Date
    Mar 2011
    Posts
    1
    Vote Rating
    0
    parnold3 is on a distinguished road

      0  

    Default


    I ran into the same thing. I'm not sure if it is correct or not to call the prototype's constructor method. I think with the constructor, you can just call:

    Ext.ux.data.PagingDirectStore = Ext.extend(Ext.ux.data.PagingStore, {
    constructor: function(){
    Ext.data.DirectStore.call(this);
    }

    });
    Ext.reg('pagingdirectstore', Ext.ux.data.PagingDirectStore);

    Ext.ux.data.PagingJsonStore = Ext.extend(Ext.ux.data.PagingStore, {
    constructor: function(){
    Ext.data.JsonStore.call(this);
    }

    });
    Ext.reg('pagingjsonstore', Ext.ux.data.PagingJsonStore);

    Ext.ux.data.PagingXmlStore = Ext.extend(Ext.ux.data.PagingStore, {
    constructor: function(){
    Ext.data.XmlStore.call(this);
    }

    });
    Ext.reg('pagingxmlstore', Ext.ux.data.PagingXmlStore);

    Ext.ux.data.PagingArrayStore = Ext.extend(Ext.ux.data.PagingStore, {
    constructor: function(){
    Ext.data.ArrayStore.call(this);
    },

    loadData: function (data, append) {
    if (this.expandData === true) {
    var r = [];
    for (var i = 0, len = data.length; i < len; i++) {
    r[r.length] = [data[i]];
    }
    data = r;
    }
    Ext.ux.data.PagingArrayStore.superclass.loadData.call(this, data, append);
    }
    });
    Ext.reg('pagingarraystore', Ext.ux.data.PagingArrayStore);


    This seems to work and seems simpler. However, both may work fine (I would be interested to hear if anyone has any insight into which one is "correct").

  3. #243
    Sencha User
    Join Date
    Feb 2011
    Posts
    2
    Vote Rating
    0
    knackwurst is on a distinguished road

      0  

    Default


    Hey!

    Thanks for this plugin, we seem to be missing only one last part. We're using the PagingJsonStore with a set of filters controlled by the store's filterBy function. Changing the filters successfully retrieves filtered results but only for the first page of results. When we move to a different page through the paging toolbar, our filters are lost and its displays whatever the unfiltered second page of results would have been.

    Any help would be greatly appreciated.

    Thanks again!

  4. #244
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
    Sesshomurai is on a distinguished road

      0  

    Default


    The workaround post above also does not work because the config is not passed in the constructor call, so I remedied that with:

    Code:
    Ext.ux.data.PagingJsonStore = Ext.extend(Ext.ux.data.PagingStore, {
        constructor: function(config){
            Ext.data.JsonStore.prototype.constructor.call(this,config);
        }
    });

  5. #245
    Touch Premium Member
    Join Date
    Sep 2010
    Location
    UK
    Posts
    54
    Vote Rating
    1
    Joe Kuan is on a distinguished road

      0  

    Default Problem with Ext.PagingToolbar

    Problem with Ext.PagingToolbar


    FYI, I think there is a conflict between Ext.ux.PagingToolbar and Ext.PagingToolbar code. Even if I don't use any ux classes but include the PagingStore source in my html file, my Ext.PagingToolbar code does not working anymore.

    As soon as I removed the include, everything works fine.

    PagingStore v0.5 and ExtJS 3.2.1

    Thanks
    Joe

  6. #246
    Sencha User
    Join Date
    Jun 2011
    Posts
    22
    Vote Rating
    0
    StanimirPanchev is on a distinguished road

      0  

    Default


    Can I use this with Ext 4 because i have a problem with paging local data.

  7. #247
    Ext JS Premium Member
    Join Date
    Jan 2009
    Posts
    31
    Vote Rating
    1
    blakel is on a distinguished road

      1  

    Default


    There seems to be a problem when using Ext.ux.data.PagingStore with a Ext.ux.PagingToolbar when you never call the load function directly. I have a page where I only call the store's add method to add records. Initially when the page loads there are no records in the store, they are only added when the user presses a button.

    In this case the current page number and the displayInfo are incorrect.

    This is what I did to fix this problem:

    Add a constructor for Ext.ux.data.PagingStore:

    Code:
    constructor: function(config) {
            this.totalLength = 0;
            Ext.ux.data.PagingStore.superclass.constructor.call(this, config);
    },
    At the beginning of the Ext.ux.PagingToolbar's onChange method:

    Change:
    Code:
    if (this.cursor >= t) {
         this.cursor = Math.ceil((t + 1) / s) * s;
    }
    To:
    Code:
    if (this.cursor >= t && this.cursor > 0) {
         this.cursor = Math.ceil((t + 1) / s) * s;
    }

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

      0  

    Default


    PagingStore is a pretty useful extension. Will it be available in version4? I saw other people have same question.

  9. #249
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    51
    Vote Rating
    0
    atul.sachan@capgemini.com is on a distinguished road

      0  

    Default


    Hi, I am using 'Ext.ux.data.PagingStore' component and trying to migrate from Ext3.2.1 to Ext 4 during migration i am getting an error 'records[i].join is not a function'. Some can provide any solution for the same please??
    Thanks,
    At
    AS

  10. #250
    Sencha User
    Join Date
    Feb 2008
    Posts
    23
    Vote Rating
    1
    Buzzwords is on a distinguished road

      0  

    Default Version for Extjs4.x???

    Version for Extjs4.x???


    Does anyone know if there is a port of Ext.ux.data.PagingStore for Extjs 4x?

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