[英]Ext JS 4.0 GridPanel CellEditing plugin breaks when multiple columns inserted
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 我试图找到一种适当的方法来动态添加/删除使用Ext JS 4.0中的CellEditing插件的GridPanel中的列
I tried to add/remove columns dynamically in a GridPanel, using the HeaderContainer add(), insert(), remove() methods 我试图使用HeaderContainer add(),insert(),remove()方法在GridPanel中动态添加/删除列
The problem is that CellEditing plugin stops working correctly when I try to add or remove more than one column: 问题是当我尝试添加或删除多个列时,CellEditing插件无法正常工作:
Steps to reproduce: 重现步骤:
You can find the full source code and example here: http://jsbin.com/otorix/edit#source / http://jsbin.com/otorix/edit#preview 您可以在此处找到完整的源代码和示例: 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 感谢您能提供的任何帮助
you were right, there was a bug, but apparently it was induced by the way you reconfigured your grid, I added some modifications to your code ( just for the add column) i guess the remove should be fairly easy, so my corrections: 您是对的,有一个错误,但是显然是由您重新配置网格的方式引起的,我对代码进行了一些修改(仅针对添加列),我想删除应该相当容易,因此我的更正是:
you have the modified code here http://jsbin.com/otorix/17/edit 您在这里具有修改后的代码http://jsbin.com/otorix/17/edit
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.