PDA

View Full Version : Selecting a column value of all rows in a grid



sogo
10 Oct 2010, 12:33 AM
I have a grid which extends from editorgridpanel.
the grid has columns, id, name and description.

On a click of button i want to retreive all values of column name.
is there a way to retrieve these.

evant
10 Oct 2010, 12:50 AM
In future if you're looking for help, please post in the help forum. Moving.

Animal
10 Oct 2010, 1:20 AM
Is this what you need?

http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store&member=collect

Otherwise, just use

http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store&member=each

and build an array by getting the field value from each Record