General Category > ParamQuery Pro Evaluation Support

Not able to hide column.

(1/1)

aniket.kulkarni:
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

            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.

paramvir:
refresh the grid after change in option.

$("#grid_json").pqGrid("option", "colModel", colM);
$("#grid_json").pqGrid( "refresh" );

aniket.kulkarni:
Thanks for quick reply.  :)

Navigation

[0] Message Index

Go to full version