Author Topic: Hide nested Columns  (Read 2288 times)

bsolteam

  • Pro Deluxe
  • Full Member
  • *
  • Posts: 107
    • View Profile
Hide nested Columns
« 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/

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Hide nested Columns
« Reply #1 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/