Add dynamic column for Ext JS 3.4
题
Is there a way to add a column to a grid panel dynamically in Ext JS 3.4?
I'm trying to add a Row Expander column to my grid panel.
Like the one here (The first plugin)
I can do it by modifying the ui.js and manually adding a column (Like the one in the code behind), but I'm trying not to.
Any workaround would be highly appreciated!
Edit: I found this for Ext JS 4. Something similar in 3.4?
解决方案
In 3.4 you have to use reconfigure method on the grid: http://docs.sencha.com/ext-js/3-4/#!/api/Ext.grid.GridPanel-method-reconfigure
不隶属于 StackOverflow