Using jqGrid I have disabled the row selection on checkbox column click by following event:
beforeSelectRow: function (rowid, e) {
var $myGrid = $(this),
i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
cm = $myGrid.jqGrid('getGridParam', 'colModel');
var rowData = $grid.getRowData(rowid);
var $isSelectable = true;
if (rowData != null) {
if (rowData.Status == -1) // Row selection depends on 'Status' property row data ( -1 : not selectable else selectable)
$isSelectable = false;
}
return $isSelectable;
},
But When i tried to click on Header Checkbox it selects all the rows. I am trying to use event onSelectAll
but it is getting called after the row selection process, and I am unable to find the appropriate event that call before the Row Selection change. Please suggest appropriate solution.
Edit :
The grid's Checkbox could have value (i.e. Checked / Unchecked) even if it is disabled.
The grid have hyperlinks that navigate to another page.