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

localizing the date column in kendo grid

1 Answer 719 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raj Yennam
Top achievements
Rank 1
Raj Yennam asked on 24 Dec 2013, 10:00 AM
Hi,

I am using Kendo UI Complete v2013.2.918.  I have to convert the date column data into the language specific date format which is based on browser's "Language Preference"  and i have to show the dates in customized filter menu in the same format.

Please suggest a way to achieve this.

Thanks,
Raj

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 25 Dec 2013, 12:09 PM
Hello Raj,

Kendo UI widgets' date and number formats depend on the widget's culture setting, or the global Kendo UI culture setting. In order to apply a particular culture on the page, you have to register the corresponding culture-specific Javascript file (provided in the Kendo UI distribution), or create a custom one of your own.

Please note that:

+ Kendo UI is not able to detect the browser settings client-side. However, you can read the browser's Accept-Language request header on the server and generate the appropriate Javascript statement to apply the correct culture on the client.

+ Kendo UI culture influences date/number formats inside widgets such as Date/Time pickers and Numeric textboxes. However, when displaying dates in the Grid, you will need to use a column template with a date format, according to your preferences, as shown here:

http://demos.kendoui.com/web/grid/remote-data.html

Please refer to our documentation for further details about setting and using cultures.

http://docs.kendoui.com/getting-started/framework/globalization/definecultureinfo

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