У меня есть GridPanel в EXTJS4 с JSONstore. Как это:
var storeGridSpe = Ext.create('Ext.data.JsonStore',{
proxy: {
type: 'ajax',
url: 'get-data-for-gridspe.php',
reader: {
type: 'json',
root: 'rows',
totalProperty: 'totalCount'
}
},
autoDestroy: true,
fields: [
{name: 'specie'},
{name: 'conta'}
]
});
var GridSpe = Ext.create('Ext.grid.GridPanel',{
store: storeGridSpe,
id: 'gridspe',
flex:1,
autoScroll: true,
columns: [
{id:'specie', header: "Specie", dataIndex: 'specie', flex:1},
{id:'conta', header: "Selezioni", dataIndex: 'conta', width:75}
]
});
Как я могу получить значение первой записи GridPanel? Например, столбец "specie".
Большое спасибо.