I think it's very simple to answer to this question:
I have simple grid with my custom store:
Code:
//other code
{xtype: 'grid',
store:'SecondStore',
itemId: 'mainTabPanel2',
columns:[{header: 'Not Form Store', id:'keyId2',}, //this is not from the store
{header: 'From Store', dataIndex: 'label', id:'keyId',}//from the store
]}
the store only populate the second column with id: keyId. In fact it have:
Code:
fields: [
{name: 'label'}]
And this work well.
I want to get from a function the row n°1 of this grid.
Code:
handler: function()
{var grid =Ext.ComponentQuery.query('grid[itemId="mainTabPanel2"]')[0];
//var row= get row(1) <- i don't know how to get the complete row
}
I'm working with ExtJs 4 so i can't get it with the comand
grid.getView().getRow(1);
I can't get it from the store because i want to get also the content of the column with id:keyId2 that is not stored in the store, so I can't do something like:
Code:
grid.getStore().getAt(1);
Anyone know how to get the complete row in ExtJs 4?
thank you!