var consoleDlg = $("#delcostListDlg"); var selectedRowIds = $("#costList").jqGrid("getGridParam","selarrrow"); var len = selectedRowIds.length; for(var i = 0;i < len ;i ++) { $("#costList").jqGrid("delRowData", selectedRowIds[0]); }
http://blog.csdn.net/drykilllogic/article/details/6112516#