I have a jqgrid with multiselect enabled. But I don’t want to check the checkbox when I click on the row.
Using the code snippet
$("#yourGrid").jqGrid("setGridParam", {
beforeSelectRow: function(rowId, e) {
return $(e.target).is("input:checkbox");
}
});
from this post I was able to refrain from selecting the checkbox but now I can’t highlight a particular row. How can I enable highlighting of a row keeping multiselect on row click disabled.
There is a property on the grid that should do this for you, according to the API.
With this you shouldn’t need your
beforeSelectRowfunction: