I have a table with jqGrid. I am able to add a new row at the end / first position of the table using :
jQuery('#tableId').jqGrid('addRow', parameters);
where parameters are:
var parameters = { rowID: 'new_row', position: 'last', useDefValues: true}
However, I have a table with grouping enabled. And I want to insert a row under a certain grouping (always the last row at that group, but can be the middle in the table, depending where the grouping is). The current workaround I have is to modify the data and the options so it will redraw the whole table, but I don't want that due to performance issue. I am interested in inserting a row inside a certain grouping.
Is this possible? I looked at a similar post here, however it adds a new row after or before a selected row. Is it possible to insert a row after a certain row / inside a certain group?
Thank you very much!