【发布时间】:2012-10-24 11:24:50
【问题描述】:
如何更改“gridpanel”商店中的数据?
我尝试这样做:
cellclick: function (th, td, cellIndex, record, tr, rowIndex, e, eOpts) {
record.set('hasPast', '-');
th.getStore().insert(rowIndex + 1, record.data.pastRecal);
}
但它给出了错误! 'cellclick' - 我的网格上的单元格单击事件的侦听器。
ext-all-debug.js 出错(在此代码段中):
urlAppend : function(url, string) {
if (!Ext.isEmpty(string)) {
return url + (url.indexOf('?') === -1 ? '?' : '&') + string;
}
return url;
},
网址未定义
谢谢!
【问题讨论】:
-
你的问题太模糊了。如果有错误,那是什么?
-
您要更改商店中的数据,还是更改整个商店?