Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Nov 2010
    Posts
    1
    Vote Rating
    0
    jikvo16 is on a distinguished road

      0  

    Default Ext.data.Store.removeAll() does not reset the totalLength property

    Ext.data.Store.removeAll() does not reset the totalLength property


    Currently the totalLength is not reset by the removeAll() function. This causes the problems when you use bind the store to the PagingToolbar. The PaginToolbar.getPageData() depends on the store.getTotalCount() function and this has not been reset when the removeAll is invoked.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    82
    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


    This has been posted before.

    1. Store doesn't update totalLength on all updates (add, remove removeAll and filter).
    2. PagingToolbar doesn't listen to add, remove, clear and datachanged store events to update the info.

    My PagingStore user extension includes an extended PagingToolbar that addresses these issues.

Similar Threads

  1. [OPEN] [CLOSED-623] Ext.data.Store 'clear' listener and removeAll
    By dave.culver in forum Ext 3.x: Bugs
    Replies: 5
    Last Post: 15 Jul 2010, 5:33 AM
  2. Replies: 2
    Last Post: 3 Apr 2010, 9:11 AM
  3. how to modify id property in ext.data.store
    By hu97224 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 15 Mar 2010, 11:57 AM
  4. Ext.Data.Store - removeAll Question
    By wkemper in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 16 Sep 2007, 11:35 PM

Thread Participants: 1