Extjs报错,“this.config[…].width’。 这个问题是由于在new Ext.grid.EditorGridPanel时加上属性autoExpandColumn: xxx',但是ColumnModel中没有id为“xxx”。
处理办法:方法1.在ColumnModel中加入Id,如下
{
id:"xxx",
header : "xxxx",
dataIndex : "xxxx",
editor : new Ext.form.Field(),
sortable : true
}
id:"xxx",
header : "xxxx",
dataIndex : "xxxx",
editor : new Ext.form.Field(),
sortable : true
}
方法2:去掉Ext.grid.EditorGridPanel中的autoExpandColumn: xxx。
转载于:https://blog.51cto.com/yangbobest/781740