- 注册时间
- 2013-5-3
- 最后登录
- 2024-11-20
- 阅读权限
- 150
- 积分
- 32966
- 精华
- 0
- 帖子
- 14366
|
milky 发表于 2020-7-15 15:02
是通过监听点击事件来判断是否要展开行详细吗
var currentDetailRow=null
grid.on("showrowdetail", onShowRowDetail)
grid.on("hiderowdetail", onHideRowDetail);
function onHideRowDetail(e) {
currentDetailRow = null;
}
function onShowRowDetail(e) {
var row = e.record;
currentDetailRow = row;
....
}
grid.fiter后执行
var row = currentDetailRow;
grid.hideRowDetail(currentDetailRow);
setTimeout(function () {
grid.showRowDetail(row);
}, 300);
|
|