var selectedRecords = grid.getSelectionModel().getSelection();
// And then you can iterate over the selected items, e.g.:
selected = [];
Ext.each(selectedRecords, function (item) {
selected.push(item.data.someField);
});
var arrayList=[],
selected=Ext.getCmp('wpDetaPrdsDetailGrid').getView().getSelectionModel().getSelection();
Ext.each(selected, function (item) {
arrayList.push(item.data);
});
var SelectedCheckbox=grid.getSelectionModel();
for(i=0;i<SelectedCheckbox.selections.length;i++){
console.log(SelectedCheckbox.selections.items[i].data.field_name);
}
5条答案
按热度按时间4ioopgfo1#
在ExtJS 4中,在选择模型为Ext.selection的网格中选择记录。复选框Model do:
我希望这有帮助
00jrzges2#
只需像这样使用
getSelection()
:tyu7yeag3#
fcipmucu4#
您的grid checkbox question将在Sencha Ext JS 3.x社区论坛上发布。
mlnl4t2r5#