jquery - Expanding jqgrid subgrid -
I have a jqgrid that has subgroup, how can I expand a sub-grid without clicking on the plus sign Am I
I came to $ ("# jqgrid_id"). Expanded radarrow (line ID);
But unsure which rowId to use to extend the subgood.
Thanks
Use $ ("# jqgrid_id") . Extend subgroups (Row IID);
in the grid's on-start event.
Something like this:
jQuery ("# jqgrid_id"). JqGrid ({... onSelectRow: function (rowId) {$ ("# Jqgrid_id"). Expand subgroups (rowID);}, ...});
Edited: grid complete event
jQuery ("# jqgrid_id"). JqGrid ({... gridComplete: function () {var rowIds = $ ("# jqgrid_id"). GetDataIDs (); $ .each (rows, function (index, line id) {$ ("# jqgrid_id"). Make the GridRao (line ID);});},.)});
Comments
Post a Comment