Using jqGrid, if I click the selected row again, the row is deselected.
Is there any way to prevent this from happening? I would like the row to still be selected.
Great solution, a little bit more compact version:
beforeSelectRow: function(rowid, e) {
return ($(this).getGridParam('selrow') != rowid);
}
Here is a workaround my brother and I came up with, just place the following code in the beforeSelectRow event:
beforeSelectRow: function(rowid, e) {
if ($(this).getGridParam('selrow') == rowid) {
return false;
} else {
return true;
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With