ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: bsolteam on November 22, 2014, 11:47:32 am

Title: Hide nested Columns
Post by: bsolteam on November 22, 2014, 11:47:32 am
Hi Team,

I want to hide the lowest level columns in the grouping hierarchy. I have tried with following codes.

Code: [Select]
var CM = $("#grid_array").pqGrid("option", "colModel");
           CM[0].colModel[0].hidden = true;
               $("#grid_array").pqGrid("refresh");


If i did like this the columns are getting collapsed. Please help me to overcome this.
I Have shared the fiddle link here.
 http://jsfiddle.net/b6b710mz/7/
Title: Re: Hide nested Columns
Post by: paramvir on November 22, 2014, 12:43:44 pm
you need to update the colModel, this line was missing from your code.

("#grid_array").pqGrid("option", "colModel", CM)

http://jsfiddle.net/b6b710mz/9/