Event after gantt chart is completely done

I need the event for changing width of chart on print. can you suggest which event will do because onRender doesn’t work for me.

Hi @pravaria !
I think onGanttRender event is the expected solution for such use case.
Could you please elaborate why it doesn’t work for you? Or maybe provide some kind of demo or a code snippet so I could see the issue myself

i am trying to adjust the grid width after the onGanttRender is event is emitted but to adjust the grid with it require chart to be render again so it is going in infinite loop so i there any workaround for this

Hi @pravaria!

Try to use these gantt event listeners:

https://docs.dhtmlx.com/gantt/api__gantt_ongridresize_event.html

https://docs.dhtmlx.com/gantt/api__gantt_ongridresizeend_event.html

https://docs.dhtmlx.com/gantt/api__gantt_ongridresizestart_event.html

Here is a sample, where you can see how it can be implemented :

http://snippet.dhtmlx.com/4a11c5104