首页 > 代码库 > ligerGrid 取得选中行的数据

ligerGrid 取得选中行的数据

   var SelectUserIdArr = [];           function GetData()        {            var returnValuehttp://www.mamicode.com/= "";            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();        }

 

ligerGrid 取得选中行的数据