Deselect single row in jqGrid

Is this possible without hacking jqGrid JS internals?

setSelection ("rowX", false) does not work, and resetSelection () deselects all rows.

+3
source share
3 answers

According to the documentation, setSelection

Enables row selection with id = rowid; if onselectrow is true (default), then the onSelectRow event is fired, otherwise it is not.

On the demo page, setSelection is called as

jQuery("#list9").jqGrid('setSelection',"13");

It works? Could you provide us with a constructor otherwise?

+8
source
jQuery("#list9").jqGrid('setSelection',"-1");
0
source
jQuery('#list9').jqGrid('resetSelection',row_id);

row_id . # list9 - , row_id - , onSelectRow.

-1

Source: https://habr.com/ru/post/1735084/


All Articles