JqGrid Reset row selction when clicked outside or lost focus or onBlur

When a row is selected/clicked in jqGrid, the row remains highlighted until you click on next row, but not when grid is out of focus or other items in the document are selected.

To remove the highlighted effect from the selected row, you need to add new event handler (focus out).


$(gridId).jqGrid().focusout(function () {
$(gridId).jqGrid("resetSelection");
});

One thought on “JqGrid Reset row selction when clicked outside or lost focus or onBlur

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s