ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: SureshB on June 16, 2015, 07:45:22 am

Title: Only One Nested Grid in open state.
Post by: SureshB on June 16, 2015, 07:45:22 am
Hi ,

Is there is any way to close already opened or expanded nested grids at once , I need to have only one nested grid open at once. Please help me!.

Title: Re: Only One Nested Grid in open state.
Post by: paramvir on June 16, 2015, 12:22:20 pm
There are rowExpand() and rowCollapse() methods to individually expand and collapse details of a row.

If you want to collapse all details at once, please use the code below:

Code: [Select]
var data = $gridMain.pqGrid('option',"dataModel").data;
for(var i=0;i<data.length;i++){
var rowData = data[i];
if(rowData.pq_detail){
rowData.pq_detail.show = false;
}
}
$gridMain.pqGrid("refresh");
Title: Re: Only One Nested Grid in open state.
Post by: SureshB on June 16, 2015, 12:48:37 pm
woww...thank you for the support.