我开始使用ExtJS。我正在尝试从选定的单元格中读取值
我使用EditorGrid和商店看起来像这样:
my_store = new Ext.data.JsonStore({
root: 'topics',
totalProperty: 'totalCount',
idProperty: 'details_id',
fields: [
{name : 'index', type : 'int'},
{name : 'inactive', type : 'int'},
{name : 'c_1', type : 'string'},
{name : 'c_2', type : 'string'},
{name : 'c_3', type : 'string'},
{name : 'c_4', type : 'string'}
],
proxy: new Ext.data.ScriptTagProxy({
url: 'my_proxy_url'
})
});
截至目前,这是我用来检索所选单元格的行和列的内容:
var column = grid.getSelectionModel().selection.cell[0];
var row = grid.getSelectionModel().selection.cell[1];
如何读取网格中所选单元格的值并更改此值?