I am trying to find the proper way to dynamically add/remove columns in a GridPanel that uses CellEditing plugin in Ext JS 4.0
I tried to add/remove columns dynamically in a GridPanel, using the HeaderContainer add(), insert(), remove() methods
The problem is that CellEditing plugin stops working correctly when I try to add or remove more than one column:
- when existing cell in edit mode the text and cursor is not visible
- first newly added column is not editable at all
- second added column is editable
Steps to reproduce:
- start the page
- select cell in the column to insert column position before which to add new column
- click add column button and type Name1 in dialog press ok
- repeat steps 2-3 Using Name2 as column name
- try to edit text in existing Company column and in column Name1 and Name2
You can find the full source code and example here: http://jsbin.com/otorix/edit#source / http://jsbin.com/otorix/edit#preview
Can you reproduce this behavior? Can you confirm this as bug? Or what am I doing wrong?
I will be grateful for any help you can provide