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

Special Days + How to bind dynamically

2 Answers 166 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
wajira
Top achievements
Rank 1
wajira asked on 26 Mar 2009, 06:10 AM
I need to mark special days in RAD Calender, which are stored in a data base.
So What I need to know is: How to bind special days to RAD Calender using .vb code.
And I need to change the back ground colour of those special days, which colour also need to be get dynamically. 

Waiting for quick reply.
 

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 Mar 2009, 10:21 AM
Hi Wajira,

You can add special days to RadCalendar and set the backcolor for the special days as shown below.

VB:
 
 
     Dim specialDay As New RadCalendarDay() 
     specialDay.[Date] = DateTime.Today 
     specialDay.ItemStyle.CssClass = "SpecialDay" 
     specialDay.IsSelectable = False 
     
     e.Cell.CssClass = "SpecialDay" 
     
     RadCalendar1.SpecialDays.Add(specialDay) 
 
 


style.css:
 
 
<style type="text/css">  
.SpecialDay a  
{  
    background-colorred !important;  
}  
</style>  


Thanks
Shinu



0
Princy
Top achievements
Rank 2
answered on 26 Mar 2009, 10:38 AM

Tags
Calendar
Asked by
wajira
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Share this question
or