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

How to change view definition date formats based in users local machine format.

1 Answer 56 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rod Yager
Top achievements
Rank 1
Rod Yager asked on 11 Aug 2011, 02:59 PM
How can I dynamically make sure the datetime format represents something close to what the users local machine format is for the date and the time ruler. This has to be able to support international date formats.

Also, I am not sure how this plays into the fact that I have a GroupHeaderTemplateSelector specifiied which also appears to have some kind of formatting involved.
<common:MetrixScheduleViewGroupHeaderSelector.HorizontalDayViewDateTemplate>
            <DataTemplate>
                <TextBlock Margin="4" Text="{Binding Name, StringFormat=dd dddd}"/>
            </DataTemplate>
        </common:MetrixScheduleViewGroupHeaderSelector.HorizontalDayViewDateTemplate>

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 18 Aug 2011, 01:35 PM
Hello Rod,

RadScheduleView displays the DateTime values using the current format set into the Regional and Language settings. Editing the  GroupHeaderContentTemplateSelector should not affect the culture.

You can find attached a screenshot of the ScheduleView on a computer with a Bulgarian set to default format. Also  you can find attached a sample project based on your code illustrating the behavior.

Regards,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
ScheduleView
Asked by
Rod Yager
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or