Author Topic: saveState and columnSelector  (Read 3552 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
saveState and columnSelector
« on: November 14, 2016, 09:03:24 pm »
Hi

Is there any update on this?

http://paramquery.com/forum/index.php?topic=1610.0

Thanks.

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: saveState and columnSelector
« Reply #1 on: December 22, 2016, 06:02:14 pm »
It now seems to work (3.3.4) if a column has attribute hidden: false when loading the table.
However if a user hides the column with columnSelector and save it through saveState, after loadState the checkbox in columnSelector is still checked even though column is now hidden...

Also if a column has attribute hidden: true when loading the table, the saveState does NOT save the columnSelector changes (show column) to the column (checkbox will unchecked and column hidden) after loadState.

Is there a fix for this?

Thanks.
« Last Edit: December 22, 2016, 06:31:34 pm by queensgambit9 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: saveState and columnSelector
« Reply #2 on: December 23, 2016, 02:42:33 pm »
Use of complete event instead of create event to initialize pqSelect ought to fix this.

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: saveState and columnSelector
« Reply #3 on: December 27, 2016, 05:33:45 pm »
Ok. Could you please provide an example how this could look like?
Thanks.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: saveState and columnSelector
« Reply #4 on: December 28, 2016, 04:04:00 pm »
I'm creating an example for you..

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: saveState and columnSelector
« Reply #5 on: January 11, 2017, 08:37:32 pm »