我從ExtJS開始。我想讀取所選擇的單元格的值
我使用EditorGrid和這家店尋找這樣的:如何讀取和設置ExtJS Grid中特定單元格的值?
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];
如何讀取網格中選定單元格的值並更改此值?
非常感謝...這是我正在尋找的東西。祝福你 –