-
23 Nov 2010 9:18 AM #1
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.
-
24 Nov 2010 2:21 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
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.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN] [CLOSED-623] Ext.data.Store 'clear' listener and removeAll
By dave.culver in forum Ext 3.x: BugsReplies: 5Last Post: 15 Jul 2010, 5:33 AM -
[OPEN-825] Ext.data.Store.removeAll() not setting totalLength=0
By cginzel in forum Ext 3.x: BugsReplies: 2Last Post: 3 Apr 2010, 9:11 AM -
how to modify id property in ext.data.store
By hu97224 in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 15 Mar 2010, 11:57 AM -
Ext.Data.Store - removeAll Question
By wkemper in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 16 Sep 2007, 11:35 PM


Reply With Quote