I have a jqgrid with multiselect true and I want to set some of rows.(I know the row ids.) How can I do that?
multiselect true
I mean opposite of
$(\"#m
You have to loop through the rowArray array and call setSelection method for every rowid from the rowArray:
rowArray
setSelection
var i, count, $grid = $("#myTable"); for (i = 0, count = rowArray.length; i < count; i += 1) { $grid.jqGrid('setSelection', rowArray[i], false); }