Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-11757 in 4.2.3.
  1. #1
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    33
    Vote Rating
    0
    ffanf is on a distinguished road

      0  

    Post Ext 4.2.x - Infinite grid and Ext.direct duplicate pages being requested

    Ext 4.2.x - Infinite grid and Ext.direct duplicate pages being requested


    Ext version tested:
    • Ext 4.2.2 (nok)
    • Ext 4.2.1 (nok)
    • Ext 4.2.0 (nok)
    • Ext 4.1.1 (nok)
    • Ext 4.1.0 (ok)



    Browser versions tested against:
    • Firefox 25.0 with firebug
    • Chromium 30.0.1599.114 with firebug lite



    DOCTYPE tested against:
    • n/a



    Description:
    • This problem seems to occur since Extjs 4.1.1 with Ext.Direct
    • When using an infinite grid, the same pages are requested multiple times.
    • Once first page is loaded, the second POST to buffer additional pages actually request the same pages multiple times.
      It's probably not a big deal when latency is low, but when each call takes ~4s to answer, it's better to avoid requesting duplicate pages.
      Plus, if you scroll down quickly on grid with high latency queries, it will actually ask again for pages, until results are received, for example
      a/ Load page 8
      b/ load page 8, 9
      c/ load page 8, 9, 10
      c/ load page 8, 9, 10, 11
      etc ... until results from page 8 are received.



    Steps to reproduce the problem:
    • Load an infinite grid
    • Using an example found on the internet: http://demo.rasc.ch/eds/extjs42/infinite-scroll.html
    • Start firebug, and load the page
    • Look at the second POST request (the one corresponding to buffering of records)
    • See if you find duplicate pages being requested



    The result that was expected:
    Ext 4.1.0
    [{"action":"personAction","method":"loadWithPaging","data":[{"page":2,"start":100,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":2},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":3,"start":200,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":3},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":4,"start":300,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":4}]




    The result that occurs instead:
    Ext 4.1.1
    [{"action":"personAction","method":"loadWithPaging","data":[{"page":2,"start":100,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":2},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":3,"start":200,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":3},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":4,"start":300,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":4},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":2,"start":100,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":5},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":3,"start":200,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":6},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":4,"start":300,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":7}]


    ==> Each page requested twice


    Ext 4.2.2
    [{"action":"personAction","method":"loadWithPaging","data":[{"page":2,"start":100,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":2},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":3,"start":200,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":3},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":4,"start":300,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":4},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":2,"start":100,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":5},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":3,"start":200,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":6},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":4,"start":300,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":7},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":2,"start":100,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":8},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":3,"start":200,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":9},
    {"action":"personAction","method":"loadWithPaging","data":[{"page":4,"start":300,"limit":100,"sort":[{"property":"lastName","direction":"ASC"}]}],"type":"rpc","tid":10}]


    ==> Each page requested three times


    Thanks


    Example used:
    http://demo.rasc.ch/eds/extjs42/infinite-scroll.html


    More details are available here:
    http://www.sencha.com/forum/showthre...imes&p=1013115

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    3,114
    Vote Rating
    59
    Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about

      0  

    Default


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

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    33
    Vote Rating
    0
    ffanf is on a distinguished road

      0  

    Default


    Hi,Any updates on bug EXTJSIV-11757 ?Thanks.

  4. #4
    Sencha - Ext JS Dev Team
    Join Date
    Jun 2011
    Location
    San Diego, CA
    Posts
    179
    Vote Rating
    35
    nohuhu has a spectacular aura about nohuhu has a spectacular aura about

      0  

    Default


    The fix for this bug has been merged for 4.2.3.

    Regards,
    Alex.

Thread Participants: 2