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

Highlight all important dates in rad calender

2 Answers 52 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chinnu Prabhakar
Top achievements
Rank 1
Chinnu Prabhakar asked on 07 Oct 2009, 05:13 AM
Sir

I have a radscheduler and a rad calender , what i want is , i Have to highlight  all appointments dates  in the rad scheduler  to the calender

any one knws

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Oct 2009, 08:28 AM
Hi Chinnu,

I tried following code snippet to highlight the days those have appointment scheduled. Give a try with this and see whether it helps.

C#:
 
protected void RadScheduler1_TimeSlotCreated(object sender, Telerik.Web.UI.TimeSlotCreatedEventArgs e) 
    if (e.TimeSlot.Appointments.Count != 0) 
    { 
        RadCalendarDay calendarDay = new RadCalendarDay(); 
        calendarDay.Date = (DateTime) e.TimeSlot.Start.Date; 
        calendarDay.ItemStyle.BackColor = System.Drawing.Color.Green; 
        RadCalendar1.SpecialDays.Add(calendarDay); 
        RadCalendar1.FocusedDate = (DateTime)e.TimeSlot.Start.Date; 
    } 

-Shinu.
0
Chinnu Prabhakar
Top achievements
Rank 1
answered on 07 Oct 2009, 09:09 AM
Hi Binu,

Thanks for ur reply, actually its working but there is a problem, on page load its not showing any highlight, but if we click on the radscheduler calender ( means there is a built in calendar is scheduler)  it will highlight the appointments on calender eg i have an appointment on 8-10-2009, and 10-10-2009, so first it highlight the today's date &  if we select another day it will highlight 8-10-2009 , then if move once more it will show 10-10-2009 like this  one by one ,i want all dates selected . So what to do? :(

regards

chinnu

Tags
Scheduler
Asked by
Chinnu Prabhakar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Chinnu Prabhakar
Top achievements
Rank 1
Share this question
or