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

Localization of Column menu for Calendar

1 Answer 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 21 Dec 2012, 11:53 AM
I have a question regarding to Date format for Calendar controls inside ColumnMenu filter for Column with Date type. As you can see here, on attached screenshot I use a Denmark (<globalization culture="da-DK" uiCulture="da-DK" />) localization defined in Web.config. And all is ok except Calendar date format, that is US. All other calendars that I used out of this filter are configured to format "dd-MM-yyyy". But how to configurate this one, inside a filter?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 25 Dec 2012, 09:11 AM
Hello Jan,

You need to change the culture on the client like explained in this section of the documentation (before initializing the Grid).

For example I tried the following and the culture has changed successfully.

<script src="/Scripts/kendo/2012.3.1114/cultures/kendo.culture.da-DK.min.js"
    type="text/javascript"></script>
 
<script type="text/javascript">
    kendo.culture('da-DK');
</script>
 
@(Html.Kendo().Grid()
//...
        )


Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Jan
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or