In a jqgrid grid, I have a checkbox as first column and some other columns. When I click on the row (everywhere) the checkbox switch to checked or to unchecked.
Could you tell me how “click” event on all row ? I’d like to do this after the grid generation because the grid is created by a framework.
Thanks,
You can use the
setGridParammethod to register abeforeSelectRowevent handler on an existing grid. That handler should returnfalseto cancel the selection operation.In your case, you can use the the is() method on the target property of the event in order to determine if the click was initiated on the check box. The end result would be something like: