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

Add day to special days

1 Answer 204 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Freddy
Top achievements
Rank 1
Freddy asked on 14 May 2013, 11:07 AM
Hi,

How can I create a rad day object and add to the special days of Raddatepicker calendar from server code?

Thanks,
Freddy

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 May 2013, 11:23 AM
Hi Freddy,

Please have a look at the following C# code.

C#:
Telerik.Web.UI.RadCalendarDay radDay = new RadCalendarDay(); 
radDay.IsToday = true
radDay.ItemStyle.BackColor = System.Drawing.Color.Bisque; 
radDay.Repeatable = Telerik.Web.UI.Calendar.RecurringEvents.Today;
radDatePicker.Calendar.DayNameFormat = System.Web.UI.WebControls.DayNameFormat.Shortest;
radDatePicker.Calendar.SpecialDays.Add(radDay);

Thanks,
Shinu.
Tags
Calendar
Asked by
Freddy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or