ExtJs中的变更存储

ExtJs中的变更存储,extjs,store,Extjs,Store,如何更改“gridpanel”存储中的数据 我尝试这样做: cellclick: function (th, td, cellIndex, record, tr, rowIndex, e, eOpts) { record.set('hasPast', '-'); th.getStore().insert(rowIndex + 1, record.data.pastRecal); } 但它给了错误! “cel

如何更改“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;
        },
url未定义


谢谢

它试图对某个远程源进行查询,但您的存储代理配置不正确。当您从内存切换到某种远程存储(AJAX或其他)时,通常会出现这种错误。只要仔细检查您的存储和代理配置,就会发现一个错误

尝试将该属性设置为您的存储并查看差异:

autoSync: false
如果需要更多详细信息,请发布存储和代理配置


祝你好运

你的问题太模糊了。如果有错误,那是什么?是要更改存储中的数据,还是更改整个存储?