Author Topic: grouped column header don't show when unhide columns  (Read 2090 times)

interloper10

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 14
    • View Profile
grouped column header don't show when unhide columns
« on: March 10, 2016, 03:57:28 am »
I have a grid with column groups like:
http://paramquery.com/pro/demos/group_columns

I also have a toolbar with widget to hide/unhide columns like:
http://paramquery.com/pro/demos/showhide_columns

It seems that if I unhide a column that is default hidden (default hidden: true in column), the column will show but the column grouping doesn't reflect column model for the grouped column. 
Is there anyway to refresh the columnModel or header.

I tried refereshHeader on the show/hide column change listener.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: grouped column header don't show when unhide columns
« Reply #1 on: March 10, 2016, 04:42:35 pm »
colModel can be refreshed as

Code: [Select]
grid.option( "colModel", grid.option( "colModel" ) ); //refresh colModel
grid.refresh(); //and refresh the grid.