开发者

Get row data in Ext JS 3.0 Grid

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


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

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜