New to KendoReactStart a free 30-day trial

Scroll to today's date in the GanttWeekView

Environment

Product Version5.13.1
ProductProgress® KendoReact Gantt

Description

I want the scroll position of the GanttWeekView to be at the today's date on load

Solution

For achieving the desired result, define a timelineHeaderCell for the GanttWeekView where a custom class name will be added to the header cell for today's date. Then, within React.useEffect, after the Gantt is rendered, get reference to the scroll and move the scroll to the cell with the custom class name that was added.

Following is an example demonstrating this approach:

Change Theme
Theme
Loading ...
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support