How to customized MonthView Header of GanttChart Timeline Header?

1 Answer 45 Views
Gantt Timeline View
Jur
Top achievements
Rank 1
Jur asked on 16 Feb 2023, 07:57 AM

Hi there!


I would like to customize the header of GanttChart timeline, like 

if it is WeekView,  "2023/2" in 1st line and "1" , "8" (← it will be the first day of week) in 2nd line  or

if it is MonthlyView, "2023/Q1" in 1st line and "2", "3" (← it will be the month number like "2" means Feburay) in 2nd line.

let me know how should I customize to that.

I think that I should use "Views.MonthView.MonthHeaderTemplate" function, but I have no idea how I used it.

I found this API from this following link, but I can't get detail info because it had died.

ASP.NET MVC Gantt - API Reference - Telerik UI for ASP.NET MVC

Could you please share me if there is any link in which explaination for gantt API info, how to use or which parameter should be passed.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 20 Feb 2023, 10:36 AM

Hello Jur,

 

Thank you for writing to us.

Sorry about that, I have reported the broken link issue and it is already fixed and will be live soon.

Here is the corresponding Kendo Gantt API link:
https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt/configuration/views.monthheadertemplate

And here is a live sample where Month names are displayed as numbers:
https://dojo.telerik.com/OGIGUnIv/2

Is this what you are looking for?

 

Regards,
Eyup
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Gantt Timeline View
Asked by
Jur
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or