JqGrid - Prevent checkbox check event on row click and keep row highlight enabled

Viewed 9081

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.

1 Answers
Related