We've tried to implement the kendo.culture() option globally, but have run into issues with other areas of the code. Is it possible to just enable it for the scheduler directly? I've checked the API, but there doesn't appear to be a culture option on the scheduler, like there is with other widgets.
3 Answers, 1 is accepted
0
Vladimir Iliev
Telerik team
answered on 14 Dec 2015, 08:47 AM
Hello,
Setting the culture for single widget only is not supported and it should be set to the whole page. Could you please elaborate more on the issues that you experience by setting the culture?
Also please note that you can set the culture only to the page where the Scheduler is used (by including the culture script only in this page).
Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
As noted there, I can't set it for just the scheduler page, it's one of many views in a SPA.
0
Vladimir Iliev
Telerik team
answered on 15 Dec 2015, 12:52 PM
Hello,
From the related forum I can only see that you were passing incorrect format to the "kendo.parseDate" method - if this is the issues that you mention than please note that the "parseDate" method automatically gets all formats from the current culture set and use them to parse the date. That why you can simply skip passing the date format to the method explicitly and if the format is correct the date will be parsed as expected.
Also please note that (as mentioned in our documentation) it's highly recommended to use the ISO8601 Date format for sending / receiving dates from the server (or the page) as it's universal format which is not changed between the cultures (it's always parsed correctly).
Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!