0

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
4

1 に答える 1

0

を使用して解決:

$("#SecondGrid").remapColumns(*your permutation here*);

基本的に列をシフトしています

于 2012-09-05T09:47:11.787 に答える