jQuery MiniUI

标题: dataGrid.removeRows(rows,true) [打印本页]

作者: wp260204287    时间: 2013-9-23 19:28:04     标题: dataGrid.removeRows(rows,true)

dataGrid.removeRows(rows,true)我想问一下这个参数rows是dataGrid.getselect()得到的还是我放其它 也行。这个参数rows能不能放这个行索引呢。

作者: factory    时间: 2013-9-24 09:20:28

不能的,
你需要先通过索引获取行,再删除行
var row = grid.getRow(index)
dataGrid.removeRows(rows,true)




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2