Hi Andrea,
Thanks for contacting Syncfusion support.
We were not able to reproduce any issue while using WeekHearFormat in Month schedule. We can set any week format to the Gantt using this property. Please refer the following code example for details.
@(Html.EJ().Gantt("Gantt"). //… .ScheduleHeaderSettings(sh => { sh.ScheduleHeaderType(GanttScheduleHeaderType.Month).WeekHeaderFormat("dd-MM"); }) ) |
We have also prepared a sample based on this and you can find the sample under the following location.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/WeekHeader-1632125683
Regards,
Mahalakshmi K.
function onChange(args) { var ganttObject = $("#initiationG").data("ejGantt"); if (args.itemId == 0) { ganttObject.model.scheduleHeaderSettings.weekHeaderFormat = "MMM dd , yyyy"; ganttObject.model.scheduleHeaderSettings.dayHeaderFormat = "ddd"; ganttObject.model.scheduleHeaderSettings.scheduleHeaderType = ej.Gantt.ScheduleHeaderType.Week; ganttObject.reRenderChart(ej.Gantt.ScheduleHeaderType.Week); } else if (args.itemId == 1) { ganttObject.model.scheduleHeaderSettings.monthHeaderFormat = "MMM yyyy"; ganttObject.model.scheduleHeaderSettings.weekHeaderFormat = "dd-MM"; ganttObject.model.scheduleHeaderSettings.scheduleHeaderType = ej.Gantt.ScheduleHeaderType.Month; ganttObject.reRenderChart(ej.Gantt.ScheduleHeaderType.Month); } else if (args.itemId == 2) { ganttObject.model.scheduleHeaderSettings.yearHeaderFormat = "yyyy"; ganttObject.model.scheduleHeaderSettings.scheduleHeaderType = ej.Gantt.ScheduleHeaderType.Year; ganttObject.reRenderChart(ej.Gantt.ScheduleHeaderType.Year); } }
Hi Andrea,
We regret for the inconvenience caused.
We were able to reproduce the issue while changing the header formats of month schedule mode dynamically, and we have confirmed this as bug and logged a report on this. Also we have created a support incident under your account to track the status of this issue.
Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let us know if you require further assistance on this.
Regards,
Dinesh kumar.N