Customizing Visible Date Range in KendoReact Gantt Chart for Yearly, Monthly, and Weekly Views

1 Answer 15 Views
Gantt
Sulav
Top achievements
Rank 1
Sulav asked on 24 Jul 2025, 06:19 AM | edited on 24 Jul 2025, 07:08 AM

Hi Kendo Team,

I'm currently working with the KendoReact Gantt Chart and would like to customize how many dates are visible in the chart for different views (Yearly, Monthly, Weekly). Specifically, I want to control the time span shown for each view — for example:

  • In Yearly view, show 5 years instead of the default range

  • In Monthly view, limit the chart to show only 6 months at a time

  • In Weekly view, show just 4 weeks of data

Is there a recommended way to configure the visible date range or scale for each view mode?

Any guidance or code example would be greatly appreciated!

Thanks

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 25 Jul 2025, 12:11 PM

Hello, Sulav,

You can control the visible time span for each Gantt view (yearly, monthly, weekly, daily) by using the dateRange property provided by each individual GanttView component, such as <GanttWeekView />, <GanttDayView />,  <GanttMonthView /> and <GanttYearView />. This allows you to explicitly define the start and end dates that should be displayed for each specific view mode.

    I have prepared a simple demo showcasing the desired outcome with three views available for the Gantt, with the applied ranges as you described. I have also added comments to clarify things even further:

    Hope you find this answer helpful. If you have any further questions, we will be happy to assist you.

    Regards,
    Alexander
    Progress Telerik

    Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

    Tags
    Gantt
    Asked by
    Sulav
    Top achievements
    Rank 1
    Answers by
    Alexander
    Telerik team
    Share this question
    or