How to highlight/Bold some dates?

2 posts, 0 answers
  1. Venkata
    Venkata avatar
    128 posts
    Member since:
    Nov 2009

    Posted 31 Jan 2011 Link to this post

    Hi,
    I am using RadScheduler with RadCalendar.
    we have some Schedules in Database.
    I would like to highlight/bold those dates in my RadCalendar control, so user knows we have Schedules on that day.

    how can i do this?

    please help me..
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 31 Jan 2011 Link to this post

    Hello,

    You can add special days to RadCalendar and set the desired style property as shown below.

    C#:
    protected void Page_Load(object sender, EventArgs e)
       {
          RadCalendarDay specialDay = new RadCalendarDay();
          specialDay.Date = DateTime.Today;
          specialDay.ItemStyle.CssClass = "SpecialDay";
          RadCalender1.SpecialDays.Add(specialDay);
       }

    CSS:
    <style type="text/css"
    .SpecialDay a 
        color:Red !important;
    </style>

    Thanks,
    Shinu.
Back to Top