View Full Version : Could there be a way to add and remove columns of a Tree Grid

6 Nov 2013, 2:53 AM
I'm working on the Extjs 4 TreeGrid (Ext.tree.TreePanel) and I'd like to manipulate its columns, add and remove them, I searched for something like that in the forum and on google but I can't find anything. Could someone help me with this ?

11 Nov 2013, 11:34 PM
There's not a way to add/remove exactly, but there are a couple of options.

You can show/hide them using the column's show, hide, and setVisible methods.

Or, you can set a new columns config on the grid using the grid's reconfigure method.