Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    9
    Vote Rating
    0
    feddgis is on a distinguished road

      0  

    Default ext 4.1.0 gpl - Store.getCount() ignores pageMap (leads to showing empty grid)

    ext 4.1.0 gpl - Store.getCount() ignores pageMap (leads to showing empty grid)


    Hi,

    it seems like the getCount method in a Store checks only the data array length. Maybe it should check the pagemap as well.

    I have a problem showing a grid based on the remotely populated Store. The system runs the Ext.toolbar.Paging onLoad method which uses the getCount method to determine if the Store is empty - and thinks that the store is empty. The user has to press 'refresh' button to see the data.

    I think it's a bug.

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    9
    Vote Rating
    0
    feddgis is on a distinguished road

      0  

    Default


    oh I'm sorry not to follow the rules. If it needs clarifications, I'll provide them... or maybe other people are experiencing the same problem?

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Must be some misunderstanding of what you're doing.

    The store's getCount is what is in the store, not what is buffered for fast rendering on scroll.

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    9
    Vote Rating
    0
    feddgis is on a distinguished road

      0  

    Default


    it really is. I am hurrying, my fault.

    commenting out "buffered: true" in store config made the data 1) available in the grid and 2) not prefetched from server.

    Seems 'buffered' is for the infinite scrolling only, not the regular paging toolbar (?)

    This is not a bug, please discard, I'm sorry.

Thread Participants: 1

Tags for this Thread