bolding the associated calendar dates in a RadCalendar that is tied to the ScheduleView

3 posts, 1 answers
  1. Sammy
    Sammy avatar
    26 posts
    Member since:
    Aug 2012

    Posted 14 Aug 2012 Link to this post

    I'm doing something similar to
    Where, i have a RadCalendar object to the left of the ScheduleView.

    In the RadCalendar object, I would like to bold all the dates that have appointments listed in the ScheduleView.

    What would be the best way to do that? What event would be the most efficient to tie into, to do something like this?

  2. Answer
    Ventzi avatar
    114 posts

    Posted 17 Aug 2012 Link to this post

    Hello Sammy,

    In order to achieve this behavior you have to do several things.

    1. You have to extract in a collection all the dates from the AppointmentsSource of the ScheduleView.
    2. Create a BoldStyleSelector class that inherits from StyleSelector.
    3. Set the DayButtonStyle of RadCalendar to point to your new BoldStyleSelector.
    4. Compare the each item (CalendarButtonContent) in the SelectStyle override in the StyleSelector with your extracted date collection and by match set the FontWeight property of the container (CalendarButton) to Bold.

    I hope this helps.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Sammy
    Sammy avatar
    26 posts
    Member since:
    Aug 2012

    Posted 19 Aug 2012 Link to this post


    That what I was looking for. Off to do some coding.
Back to Top