鉴于我使用CheckBoxModel获得了ExtJS网格,获取复选框所有记录列表的最佳方法是什么?
pab*_*car 23
在ExtJS 4中,选择具有选择模型的网格中的记录为Ext.selection.CheckboxModel:
var s = grid.getSelectionModel().getSelection();
// And then you can iterate over the selected items, e.g.:
selected = [];
Ext.each(s, function (item) {
selected.push(item.data.someField);
});
Run Code Online (Sandbox Code Playgroud)
我希望这有帮助
| 归档时间: |
|
| 查看次数: |
39191 次 |
| 最近记录: |