-
5 Aug 2009 6:46 AM #1
GrdPanel looses view on reconfigure
GrdPanel looses view on reconfigure
Hello,
if I reconfigure a GridPanel calling
and bind it to a new store, it looses it`s view property.Code:grid.reconfigure(newStore,columnModel);
How can i reconfigure the grid without loosing it`s view (i`ve defined a headerrow there, to perform custom filtering logic) and without creating a new grid (lot of overhead).
Please help me !
Thanks !
Thomas
-
5 Aug 2009 6:56 AM #2
The whole point is that it's a totally different Store and ColumnModel. Different data structure, fields etc.
If its the same data structure, just new data, then just reload the Store.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
5 Aug 2009 7:02 AM #3
Hi animal,
the new store is just like a copy of the old one with the same data structure and so on. I just need it to workaround the filterBy problematic with grindpanel and paging toolbar.
Thanks !
Thomas
-
5 Aug 2009 7:11 AM #4
So you could just reload the same Store with new data?
I'm not sure what you are really doing.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
5 Aug 2009 7:18 AM #5
Hi animal,
i try to workaround the problem i`ve described here:
http://extjs.com/forum/showthread.php?t=76549
My approach is to create a copy of an existing store which holds only the filtered records while the original store holds all records every time and then assign the copied store to the grid (so the paging toolbar gets refreshed as it needs to). I really need a very quick solution, because i do not have enough time to implement a complex one now.
Thanks !
Thomas
-
5 Aug 2009 7:20 AM #6
Store filtering offers this.
You can filter a Store, and the Grid will update itself.
clear the filter and the Grid will update back.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
5 Aug 2009 7:24 AM #7
Hi animal,
wow what a fast reply. Thanks ;-)
However, i`m already using store filtering by calling
The grid gets filtered correctly, but the problem is that the paging toolbar isn`t refreshing correctly (records are filtered on each page and do not get swapped to the first page).Code:store.filterBy()
Btw i can only filter the data locally.
Thanks !
Thomas
-
5 Aug 2009 7:28 AM #8
You are using paging from the server?
And you filter locally to make the current page smaller?
Am I following right?Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
5 Aug 2009 7:30 AM #9
I am getting a whole bunch of data initially from the server, but then only filter it locally (such as surname and so on).
-
5 Aug 2009 7:50 AM #10
So you are not paging, you have all the data in one shot?
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642


Reply With Quote