I am currently replacing the existing mouseover handler with an intermediate function that simply calls the existing handler if the grid is turned on, for example:
var enabled = true; var jqe = jQuery("#grid"); var mouseover = jqe.data('events').mouseover[0].handler; jqe.unbind('mouseover'); jqe.bind('mouseover', function() { if (enabled) { mouseover.apply(this, arguments); } });
This way I do not need to copy the jqgrid event code.
I do not like using mouseover [0] .handler, but it is working at the moment.
Systemparadox
source share