Author Topic: column.hidden  (Read 2988 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
column.hidden
« on: October 06, 2016, 02:18:38 pm »
Hi

Trying to show column after colModel is loaded:

Code: [Select]
grid.getColumn({ dataIndx: "column1" }).hidden = false;

Works but header for the columns is not displayed and causes of out of order for headers...

Thanks.



queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: column.hidden
« Reply #1 on: October 06, 2016, 04:51:25 pm »
Solved.

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: column.hidden
« Reply #2 on: October 12, 2016, 04:32:44 pm »
Still having an issue with this...

http://jsfiddle.net/auhdac71/

Can't get hidden to work.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: column.hidden
« Reply #3 on: October 12, 2016, 04:51:03 pm »

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: column.hidden
« Reply #4 on: October 12, 2016, 05:16:27 pm »
Thanks.
When I try from true to false you get wrong order of headers...?

http://jsfiddle.net/auhdac71/2/

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: column.hidden
« Reply #5 on: October 12, 2016, 05:30:20 pm »
That requires refresh of colModel too.

http://jsfiddle.net/auhdac71/3/