20 Dec 2006 7:55 AM #1
clear grid totaly
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
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.
Senior Web Developer
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
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 recordsgreets,
27 Oct 2011 12:50 AM #8
Did anyone managed to over come this?
I'm in the same pit as well.
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.