This is a migrated thread and some comments may be shown as answers.

Localization of dateformat of column headers

3 Answers 53 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
HMPSOLBB
Top achievements
Rank 1
HMPSOLBB asked on 18 May 2015, 06:46 AM

Dears,

using the localization of the gantt diagramm the date format of the header cannot be changed, always displayed in english. Can you show me the way to czhange the datetime format?

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 20 May 2015, 12:12 PM
Hello Oliver,

Please refer to our online demo, where the approach for implementation of the desired functionality is demonstrated:

http://demos.telerik.com/aspnet-ajax/gantt/examples/accessibility-and-internationalization/localization/defaultcs.aspx

You can selection form the dropdown a preferable language and you can observe how the datetime headers in the timeline view are changed.

Regards,
Nencho
Telerik
0
HMPSOLBB
Top achievements
Rank 1
answered on 20 May 2015, 12:23 PM

Thats right, i can Change the Language via the drop down:

English - USA:              MON 6/02             TUE 6/03              WED 6/04

German - Germany     MO 6/02                 DI 6/03                  MI 6/04

The weekdays are changing but the dateformat not. The common german datetimeformat ist dd.mm.yyyy so the Header shuld be like that:

German - Germany     MO 02.06.                 DI 03.06.                  MI 04.06.

The same ist für Starttime and endtime

regs

Oliver

0
Accepted
Dimitar Terziev
Telerik team
answered on 25 May 2015, 09:06 AM
Hello,

You could change the header date format using the respective properties for the specific view. Below are the settings for the WeekView:
<WeekView WeekHeaderDateFormat="ddd M.dd" DayHeaderDateFormat="ddd M.dd" />


Regards,
Dimitar Terziev
Telerik
Tags
Gantt
Asked by
HMPSOLBB
Top achievements
Rank 1
Answers by
Nencho
Telerik team
HMPSOLBB
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or