Search code examples
jqueryjqgrid

jqGrid with multiselect on, how to turn off checkbox checking when row is selected


I am using a jqGrid with multiselect put on. That works but I have a side effect which I would like to get rid off. Whenever someone clicks on a row the checkbox also alters its checked state. I would like to leave that out.

I tried this:

onSelectRow: function(row) { return false; }

and setting

beforeSelectRow: function(rowid, e) { return true; },

If I set this to false I get the desired behavior but then I also don't get any selected id's anymore via

jqGrid('getGridParam', 'selarrrow');

Anyone has an idea to fix this?


Solution

  • jqGrid is designed to work this way; do you have a good reason for not wanting to display the checkboxes?