Hi,
in the toolbar of my gantt control I have two buttons to switch between Day and Hour timescales with the next settings:
this.scheduleHeaderSettingsDay = {
scheduleHeaderType: ej.Gantt.ScheduleHeaderType.Day,
dayHeaderFormat: "MMM dd, yyyy",
hourHeaderFormat: "HH"
}
this.scheduleHeaderSettingsHour = {
scheduleHeaderType: ej.Gantt.ScheduleHeaderType.Hour,
hourHeaderFormat: "MMM dd HH:mm, yyyy",
minuteHeaderFormat: "mm"
}
to switch between them I do this:
$("#wmy_gantt").ejGantt({ scheduleHeaderSettings: this.scheduleHeaderSettingsDay });
or
$("#my_gantt").ejGantt({ scheduleHeaderSettings: this.scheduleHeaderSettingsHour });
It changes well except that the hourHeaderFormat remains the same. Any idea why?
Thanks