views:

2196

answers:

1

I have a grid, which I want to add a button at the top to get the data from a specific column for each row selected in the grid. How would I go about doing this?

+2  A: 

Add something like this to the button's click event:

rowsSelected = myGrid.getSelectionModel().getSelections();
for(...){
    aRecord = rowsSelected[i];
    filedValue = aRecord.get('fieldName');
}
rodrigoap