當我重新配置其中有rowexpander插件的網格時遇到問題。如果我刪除插件它工作正常。我想下面的修復過,但在腳本塊使用rowexpander插件進行網格重新配置問題extjs 4.21
80070057沒有運氣
Ext.override(Ext.grid.plugin.RowExpander, {
beforeReconfigure: function (grid, store, columns, oldStore, oldColumns) {
var expander = this.getHeaderConfig();
expander.locked = true;
if (columns)
columns.unshift(expander);
}
});
這是錯誤的行9988 thown
未處理的異常,列13 - 微軟JScript運行時錯誤:無效的參數。
它是從ExtJS的腳本塊的下方位置拋出
onColumnsChanged: function(headerCt) {
var items = this.view.el.query(this.rowBodyTdSelector),
colspan = headerCt.getVisibleGridColumns().length,
len = items.length,
i;
for (i = 0; i < len; ++i) {
items[i].colSpan = colspan; // **the error thown location is this**
}
},
請幫幫忙!提前致謝 !!
嘗試提供g也有一點解釋。 –
這對我有用 – Nyagolova