Dynamic date format in grid?

Is it possible to change gantt.config.date_grid after using gantt.init() without using gantt.init() again?

I would like to let my users change the date format in the grid as they wish.

After some additional research, my question is:
How can I let my user change the date format in the grid let’s say by clicking on a button?
e.g. Between EU and US format.
I’ve tried calling these before/after setting gantt.config.date_grid to the correct format:
using gantt.init() and gantt.parse() again

But nothing seems to update the UI :frowning:

Hello Subri,
If you want to change the date format in the grid after Gantt is loaded, you need to also change the grid_date_format template:
Then, you just need to call the render method.

Here is an example:

1 Like

Thank you, it works nicely!