Hi,
In my application, I have an UltraTabControl with 3 tabs: an UltraDayView, an UltraMonthViewSingle and an UltreTimeLineView. They all use a common UltraCalendarInfo object. In this object, I modified the days of the week and months of the year names to have them in french. It works fine with the UltraDayView and the UltraMonthViewSingle controls, but the UltraTimeLineView seems to ignore them although other UltraCalendarInfo elements are taken into account as expected. Is there a special setting I have to do to make it work? If not, is there a way around?
I am working with the UltraTimeLineView of the WinForms library v14.2.
Thank you
Hi Real,
We have investigated this further and this seems to be expected behavior. LongDescription and ShortDescription properties are not supposed to affect the TimeLine headers. They are for cases where the control displays the names by itself. The headers of the TimeLineView format a particular DateTime. To format the headers you may handle ColumnHeaderInitializing event. In this event you can set the header text like this:
private CultureInfo fr = new CultureInfo("fr-FR"); private void UltraTimelineView1_ColumnHeaderInitializing(object sender, ColumnHeaderInitializingEventArgs e){ e.Text = e.DateTimeRange.StartDateTime.ToString("dddd, MMMM d, yyyy", this.fr);}
private void UltraTimelineView1_ColumnHeaderInitializing(object sender, ColumnHeaderInitializingEventArgs e){ e.Text = e.DateTimeRange.StartDateTime.ToString("dddd, MMMM d, yyyy", this.fr);}
Attached is a small sample project showing how you can format header's text by the help of this event.
Please let me know if any additional questions arise.
Thank you. This provides an excellent solution to my problem. You mayclose the case.