Simple way to highlight days

3 posts, 0 answers
  1. mmarchev
    mmarchev avatar
    5 posts
    Member since:
    Oct 2011

    Posted 05 Mar Link to this post

         I am using this:  

     

    @(Html.Kendo().MultiViewCalendar().Name("calendar").Views(3).ShowViewHeader().Min(new DateTime(2020, 7, 1)).Max(new DateTime(2020, 9, 30)).Events(e => e.Change("change"))
                )

     

    and I simply want to highlight/change background color of a few days in a list in my model.  Is there a simple way of doing that?

  2. mmarchev
    mmarchev avatar
    5 posts
    Member since:
    Oct 2011

    Posted 06 Mar in reply to mmarchev Link to this post

    I want a simple example after the calendar is loaded to highlight certain days.  Lets say July 4th.  Is there a simple jquery code that can do that after I get the calendar object? 

      var multiViewCalendar = $("#calendar").data().kendoMultiViewCalendar;

     

  3. Nikolay
    Admin
    Nikolay  avatar
    135 posts

    Posted 09 Mar Link to this post

    Hello,

    Highlighting predefined dates in the Calendar could be achieved by setting a MonthTemplate. For a sample demo demonstrating this please refer to the following link:

    Let me know if you have further questions.

    Regards,
    Nikolay
    Progress Telerik

    Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
Back to Top