This is a migrated thread and some comments may be shown as answers.
How to highlight/Bold some dates?
1 Answer 37 Views
This is a migrated thread and some comments may be shown as answers.
Venkata
Top achievements
Rank 1
Venkata asked on 31 Jan 2011, 11:13 PM
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..

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 01 Feb 2011, 05:29 AM
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.
Asked by
Venkata
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or