Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJSIV-7228 in 4.2.0 Sprint 3.
  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    28
    Vote Rating
    0
    user ext is on a distinguished road

      0  

    Default [4.1.1] Ext.data.Store, if buffered = true, method load() set options.start to NaN

    [4.1.1] Ext.data.Store, if buffered = true, method load() set options.start to NaN


    Ext version tested:
    • Ext 4.1.1
    Description:
    • Default pageSize = undefined.
      If set buffered = true then method load() set options.start = NaN (proxy requests wrong operation.start = NaN).
      See next source code of Ext.data.Store.

    1)
    Set config store (on define/create store): buffered = true.
    Default config is:
    pageSize = undefined,
    In constructor:

    Code:
     constructor: function(config) {
     ...
             if (me.buffered) {
                 me.pageMap = new me.PageMap({
                     pageSize: me.pageSize, //here pageSize set to undefined
                     ...
                 });
             ....
              }
     ...
     
             // Page size for non-buffered Store defaults to 25
             // For a buffered Store, the default page size is taken from the initial call to prefetch.
             if (!me.buffered && !me.pageSize) {
                 me.pageSize  = me.defaultPageSize;
            
            //here pageSize is undefined
     
     ...
     }
    2)
    call store.load(); Then
    Code:
         load: function(options) {
             var me = this;
     
             options = options || {};
     
             if (typeof options == 'function') {
                 options = {
                     callback: options
                 };
             }
     
             options.groupers = options.groupers ||  me.groupers.items;
             options.page = options.page || me.currentPage;
             options.start = (options.start !== undefined) ? options.start : (options.page - 1) * me.pageSize;
             //here options.start is NaN
    Then options.start = NaN.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Tags for this Thread