在grid上添加事件:
onCheckRow: function(checked, rowdata, rowindex) {
for (var rowid in this.records)
this.unselect(rowid);
this.select(rowindex);
}
本文详细介绍了如何在Grid组件上实现事件监听,通过定义一个名为onCheckRow的函数来响应用户操作,并且在该函数中实现了清除所有已选行和选择当前行的功能。
在grid上添加事件:
onCheckRow: function(checked, rowdata, rowindex) {
for (var rowid in this.records)
this.unselect(rowid);
this.select(rowindex);
}

被折叠的 条评论
为什么被折叠?