Set Culture for Only Specific Widget (scheduler)

4 posts, 0 answers
  1. Ashleigh L
    Ashleigh L avatar
    113 posts
    Member since:
    Jun 2012

    Posted 10 Dec 2015 Link to this post

    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.
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 14 Dec 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Ashleigh L
    Ashleigh L avatar
    113 posts
    Member since:
    Jun 2012

    Posted 14 Dec 2015 in reply to Vladimir Iliev Link to this post

    I have a whole other post on the issue: http://www.telerik.com/forums/culture-date-formatting-breaking-template.

    As noted there, I can't set it for just the scheduler page, it's one of many views in a SPA.

  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 15 Dec 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready