RadCalendar Background highlighting

3 posts, 1 answers
  1. Dayanithy
    Dayanithy avatar
    10 posts
    Member since:
    Jul 2011

    Posted 06 Oct 2011 Link to this post

    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. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 11 Oct 2011 Link to this post

    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
  3. Dayanithy
    Dayanithy avatar
    10 posts
    Member since:
    Jul 2011

    Posted 12 Oct 2011 Link to this post

    Hi Maria,

    Thanks for the solution.

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

    Regards,
    Dayanithy
Back to Top