Our state of the art Gantt chart


Post by malwina »

Hi all!

Could you please tell me if there's any event listener I could use to catch toggling column visibility? I would need something that would fire on the "Hide column" action and on changes made to the columns checkbox group on the right mouse click.
Didn't have any luck finding it in the docs.

Thank you!


Post by ghulam.ghous »

Hi there,

You can listen for the toggle event that is fired from the menuItem https://bryntum.com/products/gantt/docs/api/Core/widget/MenuItem#event-toggle and has information about the column being hidden in source.column. Hope this helps!

Please also see these two events on the columnStore:

Regards,
Ghous


Post by malwina »

Thank you, Ghous!

Could you also help me understand where the checkbox group takes its state from?
The thing is that if I initialize the "hidden" property on the column with the true value, the checkbox list item is still checked. In the screenshot you can see that all columns are checked, but the End Date column is actually hidden.

Attachments
Zrzut ekranu 2024-03-19 o 14.10.17.png
Zrzut ekranu 2024-03-19 o 14.10.17.png (79.38 KiB) Viewed 80 times

Post by malwina »

Nevermind! I had a typo on my side :)
Thank you for your help! I went with columnHide and columnShow, which helped a lot!


Post Reply