24 hour time format kendo scheduler

11 posts, 1 answers
  1. Pedro
    Pedro avatar
    5 posts
    Member since:
    Sep 2014

    Posted 15 Sep 2015 Link to this post

    Hello,

    i've been searching with no luck on how to display the time from 1:00pm to 13:00 on the time ruler. I am using mvc razor for my project, could you guys guide me on the right direction? Thanks!

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 17 Sep 2015 Link to this post

    Hi Pedro,

    I'm not sure that I understand your question - could you please provide screenshot of the exact layout that you need and elaborate more on the matter?

    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. Pedro
    Pedro avatar
    5 posts
    Member since:
    Sep 2014

    Posted 17 Sep 2015 Link to this post

    Yes sir, i have attached a picture with what i would like to change. Thank you very much.
  5. Answer
    Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 18 Sep 2015 Link to this post

    Hi Pedro,

    This format can be changed either by using different culture (more info here) on the page or by specifying the time header template option:

    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Pedro
    Pedro avatar
    5 posts
    Member since:
    Sep 2014

    Posted 15 Oct 2015 in reply to Vladimir Iliev Link to this post

    Thank you sir, i was able to modify the majorTimeHeaderTemplate string
  7. sroussos
    sroussos avatar
    6 posts
    Member since:
    Nov 2009

    Posted 06 Sep Link to this post

    i was able to modify the majorTimeHeaderTemplate string, looks nice, but not on agenda view... Any thoughts? Or should I file a bug?
  8. sroussos
    sroussos avatar
    6 posts
    Member since:
    Nov 2009

    Posted 06 Sep Link to this post

    Ignore prv message, I found that need to modify the eventTimeTemplate inside views. 
  9. Sameem
    Sameem avatar
    1 posts
    Member since:
    Sep 2016

    Posted 28 Sep in reply to Vladimir Iliev Link to this post

    Hi Vladimir,

    I am having same issue. I want to show 13:00 instead of 1:00 pm in time rular in week/day view.

    Regards

    Sameem

  10. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 29 Sep Link to this post

    Hello Sameem,

    You can check the links in my previous reply for more information about how to achieve it. 

    Regards,
    Vladimir Iliev
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  11. sroussos
    sroussos avatar
    6 posts
    Member since:
    Nov 2009

    Posted 29 Sep in reply to Sameem Link to this post

    This how I modified majorTimeHeaderTemplate 

    majorTimeHeaderTemplate: kendo.template("<strong>#=kendo.toString(date, 'HH:mm')#</strong>")

    and this is how I dealt with agenda view

    views: ['day', 'week', { type: 'agenda', selected: true, eventTimeTemplate: kendo.template("<span>#=kendo.toString(start, 'HH:mm')#</span> - <span>#=kendo.toString(end, 'HH:mm')#</span>") }]

  12. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 30 Sep Link to this post

    Hi,

    From the provided information it seems that you are using culture-unaware date format, which leads me to believe that the culture files of Kendo UI are not loaded. Please note that it's advisable to use culture-aware date formats and set the project culture to one that match the desired format. 

    Regards,
    Vladimir Iliev
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready