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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -