Skip to navigation
How to add and expand and collapse buttons with its function to a free-jqgrid
10.02.21
}).jqGrid('navButtonAdd', '#grid_toppager', { caption: "Expand", id:"expand", buttonicon: "fa-angle-double-down", onClickButton: function (e) { const rowIds = jQuery("#grid").getDataIDs(); jQuery.each(rowIds, function (index, rowId) { jQuery("#grid").expandSubGridRow(rowId); }); } }).jqGrid('navButtonAdd', '#grid_toppager', { caption: "Collapse", id:"Collapse", buttonicon: "fa-angle-double-up", onClickButton: function (e) { const rowIds = jQuery("#grid").getDataIDs(); jQuery.each(rowIds, function (index, rowId) { jQuery("#grid").jqGrid ('toggleSubGridRow', rowId); }); } });
https://stackoverflow.com/questions/3345401/expanding-jqgrid-subgrid
Reply
Anonymous
Information Epoch 1752611197
Think parallel.
Home
Notebook
Contact us