In gantt chart, can I see Year slots in Week and Month views??
1 Answer, 1 is accepted
answered on 20 Jan 2021, 12:25 PM
Hi, Mariam, Thank you for your question.
If I understand you correctly, you are looking to display the year as a part of the date in the slots of the Gantt. This can be achieved by using headerTemplates when defining the Gantt's views. The 'week' view shows days and weeks in the headers. Therefore you can utilize the dayHeaderTemplate and the weekHeaderTemplate to customize the date's formats. Similarly, the 'month' view shows weeks and months in its headers. They can be customized by weekHeaderTemplate and monthHeaderTemplate.
The following snippet shows an example of how the above can be done in practice:
If the advice above isn't helpful in your scenario, please don't hesitate to contact us.
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/.