jeecg 表格设置默认选中 jeecgdatagrid
程序员文章站
2022-04-02 23:17:45
...
jeecg 表格设置默认选中
<t:datagrid name="lcChannelInfoList" onLoadSuccess="checkSelect">
添加onLoadSuccess方法
function checkSelect(row, data){
var ids = "${ids}";
var idArr = ids.split(",");
for(var i=0;i<idArr.length;i++){
if(idArr[i]!=""){
$("#lcChannelInfoList").datagrid("selectRecord",idArr[i]);
}
}
}