Javascript DojoDataGrid:设置条件可编辑列(在运行时更改)
Dojo datagrid/enhancedgrid v1.10: 是否可以在运行时更改“类和可编辑”属性重新招标也可以解决这个问题Javascript DojoDataGrid:设置条件可编辑列(在运行时更改),javascript,html,dojo,Javascript,Html,Dojo,Dojo datagrid/enhancedgrid v1.10: 是否可以在运行时更改“类和可编辑”属性重新招标也可以解决这个问题 您必须使用以下内容: var theStructure = mygrid.structure; theStructure[0].editable = true; theStructure[0].classes = "editableCell"; mygrid.setStructure(theStructure); 完整的解决方案可在以下
您必须使用以下内容:
var theStructure = mygrid.structure;
theStructure[0].editable = true;
theStructure[0].classes = "editableCell";
mygrid.setStructure(theStructure);
完整的解决方案可在以下网址找到:
玩得开心
mygrid.setStore(mygrid.store);
var theStructure = mygrid.structure;
theStructure[0].editable = true;
theStructure[0].classes = "editableCell";
mygrid.setStructure(theStructure);