I have a jqgrid that has a subgrid. How can I expand the subgrid without having to click on the plus sign?
I came across $("#jqgrid_id").expandSubGridRow(rowId);
but am unsure which rowId to use to expand the subgrid.
Thanks.
I have a jqgrid that has a subgrid. How can I expand the subgrid without having to click on the plus sign?
I came across $("#jqgrid_id").expandSubGridRow(rowId);
but am unsure which rowId to use to expand the subgrid.
Thanks.
Change getDataIds() to getDataIDs()!
Use
$("#jqgrid_id").expandSubGridRow(rowId);
in the onSelectRow Event of the grid.Something like this:
EDITED: on GridComplete event