Scroll to today by default

Modified on Tue, 9 Jan at 4:30 PM

Is there a way that I can set the focus always to Today without pressing the "Today" button? 

Is there a script I can add with the same functionality?


Yes, put the following script into Widget Properties > Advanced > Gantt Config Script:


gantt.attachEvent("onLoadEnd", function(){
    gantt.showDate(new Date());
});



As an alternative, you can also use the following script:


gantt.attachEvent("onDataRender", function(){
    gantt.showDate(new Date());
});





In case of any questions please contact [email protected]

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article