DeLe
DeLe

Reputation: 2480

Extjs Grid - How to get record of first row but don't change selection

I want to get value record of first row but don't change selection. I try

alert(grid.store.first().get('name'));

but not working. How can i do that thanks. I using extjs 4.1.1

Upvotes: 1

Views: 9460

Answers (1)

Dev
Dev

Reputation: 3932

grid.store.getAt(0).data.name

Here name is the column i.e dataindex of the column, of which you need data.

Upvotes: 5

Related Questions