LigerGrid 获取选中行的数据
作者:互联网
var SelectUserIdArr = [];
function GetData()
{
var returnValue = "";
var grid = $("#maingrid").ligerGrid();
SelectUserIdArr.length = 0;
var rows = grid.getSelecteds();
if (rows.length == 0) {
returnValue = "";
} else {
for (var rowid in rows) {
SelectUserIdArr.push(rows[rowid]["ID"]);
}
returnValue = (SelectUserIdArr.join(","));
}
window.parent.setCallbackValue(returnValue);
frameElement.dialog.close();
}
明思万新 发布了52 篇原创文章 · 获赞 9 · 访问量 7511 私信 关注
标签:LigerGrid,rows,rowid,SelectUserIdArr,获取,选中,returnValue,var,grid 来源: https://blog.csdn.net/weixin_40461030/article/details/104575183