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

RadCalendar Background highlighting

2 Answers 109 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Dayanithy
Top achievements
Rank 1
Dayanithy asked on 06 Oct 2011, 08:04 AM
Hi,

I am using Telerik RadControls for ASP.NET Ajax.
DLL : Telerik.Web.UI
Version : 2011.2.915.35

I am using RadCalendar in Multiview mode. I have 6 Rows and 2 Columns.
I have a requirement which has two steps,
1. Highlight or change the background color of a particular month in RadCalendar(Multiview) based on User's selection. Other months should have the usual white background.
2. I have to set specific dates in the highlighted month as selected based on the user input.

I was able to achieve the second part with the help of the below code, which highlights the selected dates in RED.

RadCalendar.set_datesInRange(startDate, endDate);

How can i highlight a month in RadCalendar(Multiview) apart from setting the selected dates?

Regards,
Dayanithy

2 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 11 Oct 2011, 08:22 AM
Hi Dayanithy,

The required functionality could be achieved using jquery. You could access the main calendar table and find the needed number in the month array. Note that the array begins from 0. Find attached sample application which presents this scenario. Test it on your side and let me know if it covers your requirements.


All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Dayanithy
Top achievements
Rank 1
answered on 12 Oct 2011, 07:34 AM
Hi Maria,

Thanks for the solution.

I tried your solution with a sample application. It works fine.

Regards,
Dayanithy
Tags
Calendar
Asked by
Dayanithy
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Dayanithy
Top achievements
Rank 1
Share this question
or