Change date title to week of year

2 posts, 0 answers
  1. hanna
    hanna avatar
    1 posts
    Member since:
    Oct 2015

    Posted 29 Oct 2015 Link to this post

    Hello

    First, is it possible to modify the source code of the free trial?

    If it is possible:

    It is the date title i want to change, see picture.
    To change the date to the week number where in the javascript should I change? And which amendment should I do?

    Grateful for all the help I can get

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 30 Oct 2015 Link to this post

    Hello Hanna,

    Modifying the toolbar template currently is not supported out of the box and it will require custom code. For example you use the "dataBound" event of the Scheduler to access the internal "_model" and set it's "formatted" date field:

    var scheduler = $("#scheduler").getKendoScheduler();
      
    var startDate = scheduler.view().startDate();
    var endDate = scheduler.view().endDate();
      
    scheduler._model.set("formattedDate", startDate.getFullYear() + " to " + endDate.getFullYear());
     
    Regards,
    Vladimir Iliev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top