-
20 Dec 2006 7:55 AM #1
clear grid totaly
clear grid totaly
Hi
I use a grid and the contents change dynamically, I would like to empty the grid during the loading, i.e. that the contents are white. How I must make?
-
20 Dec 2006 9:36 PM #2
dataModel.removeAll() might just work.
-
21 Dec 2006 2:05 AM #3
It's ok, thx!!
But, i don't find in the javadoc... Is this normal?
-
21 Dec 2006 7:38 AM #4
It's marked private in DefaultDataModel - not sure that it needs to be private any longer.
Tim Ryan
Read BEFORE posting a question / BEFORE posting a Bug
Use Google to Search - API / Forum
API Doc (4.x | 3.x | 2.x | 1.x) / FAQ / 1.x->2.x Migration Guide / 2.x->3.x Migration Guide
-
10 Feb 2010 1:14 PM #5
And if you stumbled upon this thread and are looking for information on how to clear out a grid (content) using ExtJS 3.0+, the command is simply... "grid.store.removeAll();" where "grid" is your grid component.
Cheers!Noah
Senior Web Developer
NBA.com
-
4 Apr 2011 8:16 PM #6
but that doesn't clear out the paging toolbar that has the old data count. Any idea how to clear that as well? I am error handling and would like to clear it all out in the event of a loadexception. Thanks.
-
4 Apr 2011 11:36 PM #7
Re
Re
I have the same problem with paging toolbar. When I load 500 records with 50 on page (so there are 10 pages) it creates list of 50 records and all default store methods works only with this 50 records...
But I want to use all 500 records in the store but view only 50 on one page, is it possible? I mean for me Pager should only change display, not data... so when I use store.removeAll() I want to remove all 500 records
greets,
iwosz.
-
27 Oct 2011 12:50 AM #8
Hi there,
Did anyone managed to over come this?
I'm in the same pit as well.
mkariti
-
7 Dec 2011 6:19 PM #9
This post is here untill 2006 and anyone could give us an answer... Needing it too!
Someone know the answer?
-
24 Jan 2012 10:31 AM #10
Having his same issue with 4.0.7 - no amount of overrides or hardcodes is solving this for me either. Pagingtoolbar retains page and limit, causes issues when a query that contains less pages / rows is run.
Similar Threads
-
Clear grid's sort arrow icon
By SLerman in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 5 Oct 2011, 5:49 AM -
Fire clear event when Store is empty?
By aconran in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 22 Feb 2007, 4:39 PM


Reply With Quote