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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -