I have successfully configured subgrid, including the subGridRowExpanded callback in my grid. This means that the callback and configuration values ββare valid.
Now I want to delete the subtitle configuration in order to add it programmatically.
The first step is to set the subtitle to true :
jQuery('#s3list').jqGrid('setGridParam', { subGrid: true });
This results in the following error: TypeError: this.p.subGridOptions undefined.
The second step is to add the necessary subGridOptions parameters :
jQuery('#s3list').jqGrid('setGridParam', {subGridOptions: { reloadOnExpand: false }});
This results in the following error: TypeError: bpcolModel [((((n + x) + C) + H)] undefined
Adding my actual callback for subGridRowExpanded has no effect - the error remains the same:
jQuery('#s3list').jqGrid('setGridParam', { subGridRowExpanded: function(subgrid_id, row_id) { } });
Is it possible at all?
Using jqGrid 4.5.2.
Related Questions / Questions: https://github.com/tonytomov/jqGrid/issues/478
source share