var store = gridPanel.getStore();
store.proxy.extraParams.userName = gridPanel.userName;
store.load({
callback: function(records,operation,success) {
console.log(records);
var selectedRecords = [];
$.each(records,function(index,record){
console.log(record);
if(record.get("checked"))
selectedRecords.push(record);
});
console.log(selectedRecords);
gridPanel.getSelectionModel().select(selectedRecords,true,true);
}
});
[Extjs6] Ext.data.Store Gridpanel默认选中一些记录
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Extjs6 修复IFrame插件,若URL异常则打开404请求界面
HiveDark
2020-07-07 00:06:04
[Extjs6] treepanel 对树的模糊搜索展开
HiveDark
2020-02-22 06:33:54
[Extjs6] 线性数组的形式返回一个TreeStore数据
HiveDark
2020-02-22 06:33:54
[Extjs6] treepanel 选中父节点-相关的子节点的选中情况同父节点
HiveDark
2020-02-22 06:33:54
Extjs6 修复IFrame插件,若URL异常则打开404请求界面
HiveDark
2020-07-07 00:06:04
[Extjs6] treepanel 对树的模糊搜索展开
HiveDark
2020-02-22 06:33:54
[Extjs6] 线性数组的形式返回一个TreeStore数据
HiveDark
2020-02-22 06:33:54
[Extjs6] treepanel 选中父节点-相关的子节点的选中情况同父节点
HiveDark
2020-02-22 06:33:54
Ext JS Data Package
robin_xiong
2018-09-04 06:35:40
Ext JS MVC Architecture
robin_xiong
2018-09-04 06:35:40
Ext JS Architecture
robin_xiong
2018-09-04 06:35:39
Working with the DOM
robin_xiong
2018-09-04 06:35:39
Buttons and Toolbars
robin_xiong
2018-09-04 06:35:39
Ext JS 基本概念 - 事件与手势
robin_xiong
2018-09-04 06:35:39
Ext JS 6组件,容器, 布局
robin_xiong
2018-09-04 06:35:38