-
31 Mar 2011 1:52 PM #1
Reconfiguring ExtJS 4 Grid
Reconfiguring ExtJS 4 Grid
I'm building a prototype with ExtJS 4. The preview was good already and I'm glad to see the Beta 1 is out

I have a question about reconfiguring the grids though. The old api had a reconfigure method, but there doesn't seem to be anything similar on the new API?
I'm basically trying to reconfigure the column model when loading new data.
Similarly, I'm trying to reconfigure the chart series when getting new data.
Any pointers?
-
3 Apr 2011 1:07 AM #2
BUMP...
I am having the similar qustion. In Ext3 you could buld the columns and fields structure on the server-side (PHP) and then use setConfig() on the columnmodel to create the model.
Is there already something similar like this in the Ext4 Beta ??
-
30 Apr 2011 3:28 PM #3
Bump again.

I am also interested in how to add columns (fields) to a grid dynamically.
-
30 Apr 2011 3:37 PM #4Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,455
- Vote Rating
- 50
You can try reconfigure method (not sure if it's documented)
Code:reconfigure: function(store, columns) { var me = this; if (me.lockable) { me.reconfigureLockable(store, columns); return; } if (columns) { me.headerCt.removeAll(); me.headerCt.add(columns); } if (store) { store = Ext.StoreManager.lookup(store); me.bindStore(store); } else { me.getView().refresh(); } },
-
30 Apr 2011 4:57 PM #5
Oh wow, I assumed the OP had tried that. It's sitting there, right in Ext.panel.Table. It's not yet documented.
My actual problem (what I mistook for a missing way to reconfigure) was that you cannot start without a store at all any more.
Similar Threads
-
[CLOSED] GridView doRender error during reconfigure after reconfiguring other grid
By devtig in forum Ext 3.x: BugsReplies: 3Last Post: 3 Dec 2010, 6:10 AM -
standard way of reconfiguring a component?
By j11extjs in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 20 Sep 2010, 9:54 PM -
Reconfiguring Grid Problem
By SMIRZA in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 5 Apr 2009, 6:45 PM -
Ext.fly(...) is null in IE 7 when reconfiguring columns in portal example
By code loki in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 24 Apr 2008, 1:15 PM


Reply With Quote