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
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: