This is a migrated thread and some comments may be shown as answers.

Simple way to highlight days

2 Answers 133 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
mmarchev
Top achievements
Rank 1
mmarchev asked on 05 Mar 2020, 10:56 PM

     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 Answers, 1 is accepted

Sort by
0
mmarchev
Top achievements
Rank 1
answered on 06 Mar 2020, 03:40 PM

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;

 

0
Nikolay
Telerik team
answered on 09 Mar 2020, 11:50 AM

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.
Tags
Calendar
Asked by
mmarchev
Top achievements
Rank 1
Answers by
mmarchev
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or