ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: aniket.kulkarni on June 10, 2014, 06:46:13 pm

Title: Not able to hide column.
Post by: aniket.kulkarni on June 10, 2014, 06:46:13 pm
Hi!

I want to hide column based on some value. I am getting the value. I used API code http://paramquery.com/pro/api#option-column-hidden (http://paramquery.com/pro/api#option-column-hidden)

            var colM = $("#grid_json").pqGrid("option", "colModel");           
            colM[10].hidden = true;
            $("#grid_json").pqGrid("option", "colModel", colM);

But not able to hide. colM is JSON object array. So, colM[10].hidden = true; is not working.

Please help.
Title: Re: Not able to hide column.
Post by: paramvir on June 10, 2014, 06:52:55 pm
refresh the grid after change in option.

$("#grid_json").pqGrid("option", "colModel", colM);
$("#grid_json").pqGrid( "refresh" );
Title: Re: Not able to hide column.
Post by: aniket.kulkarni on June 10, 2014, 06:59:57 pm
Thanks for quick reply.  :)