Basically i have first jqGrid which has a subgrid inside
jQuery("#FirstGrid").jqGrid({
...
subGrid: true,
...
});
and i'm trying to clone/copy the first Grid into another page(grid) using
var gridconfig = $("#FirstGrid").jqGrid('getGridParam');
$("#SecondGrid").jqGrid(gridconfig);
The problem is the "SecondGrid" showing 2 columns of subgrid clickable column
Is this a jqGrid bug or did I miss something ?
Update :
found possible root cause by printing "gridconfig"
colModel":[
....
{"name":"subgrid","width":20,"sortable":false,"resizable":false,"hidedlg":true,"search":false,"fixed":true,"title":true,"hidden":false,"widthOrg":20},
....
], // first subgrid column added
and
"subGrid":true //another subgrid column added