Ext.js 4.2 默认选中Grid行
2021-02-03 20:14
标签:point record rds i++ var func tor get model 添加监听事件:afterlayout Ext.js 4.2 默认选中Grid行 标签:point record rds i++ var func tor get model 原文地址:https://www.cnblogs.com/xielideboke/p/13154139.html listeners: {
afterlayout: function (grid) {
debugger;
var records = grid.getStore().getRange();
for (var i = 0; i ) {
var record = records[i];
if (record.get(‘Point‘) != 0) {
grid.getSelectionModel().select(record, true);
}
}
},
}
文章标题:Ext.js 4.2 默认选中Grid行
文章链接:http://soscw.com/index.php/essay/50565.html