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

Radschedular with radcalandar

3 Answers 44 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 06 Sep 2011, 03:11 PM
Hi,

i am using radclander with radschedular to traverse through the radschedular. On dataBound event of radschedular , I change the color of day of the radcalandar. however when i create recurrence appointment, it only colors the startday of the appointment, but i need to show every day on which appointment is recurring. here is my Code:

  protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
        {
           RadCalendarDay radCalendarDay = new RadCalendarDay(RadCalendar1);
            radCalendarDay.Date = e.Appointment.Start;
            radCalendarDay.ItemStyle.CssClass = "DayWithAppointments";
            RadCalendar1.SpecialDays.Add(radCalendarDay);  
       }

on clicking month view i get color on all appointment days, but i need this functionality on day view also. pls reply.


Thanks

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 07 Sep 2011, 02:31 PM
Hello Kevin,

You need to parse the recurrence rule to get all occurrences of a series. Here is a kb article that will help you with this task - http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-display-all-radscheduler-appointments-in-gridview.aspx.

Greetings,
Peter
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Kevin
Top achievements
Rank 1
answered on 13 Sep 2011, 10:51 AM
Thanks fo r the reply, but how can I add each recurrence Day of Schedular in radcalander with some style(Color). As i am not getting recurrence days added in rad calander. It Only shows  days on which a recurrence appointment is added by  start Day.

Thanks & Regards
0
Ivana
Telerik team
answered on 16 Sep 2011, 08:37 AM
Hello Kevin,

Thank you for contacting us again.

The coloring of the calendar cells for recurring appointments is really not an supported functionality of the RadCalendar control.

Despite that, I have managed to prepare a workaround of scenario you described.
What I am doing in the demo project is subscribing to the OnAppointmentClick event of the RadScheduler and for the recurring appointments I withdraw the start time for each one of them and color the cells in the calendar respectively. For non recurring appointments I use the appointment's start time.
The OnAppointmentClick event is fired when double clicking the appointment; for recurrence appointments you need to select an option(from the "Editing a recurring appointment" dialog) in order to fire the event.

Attached are only the .aspx and aspx.cs files from the project. The .xml file the RadScheduler uses for DataBinding is also attached.

Please let us know if you have any further questions.
 
Greetings,
Ivana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
Tags
Scheduler
Asked by
Kevin
Top achievements
Rank 1
Answers by
Peter
Telerik team
Kevin
Top achievements
Rank 1
Ivana
Telerik team
Share this question
or