Radschedular with radcalandar

4 posts, 0 answers
  1. Kevin
    Kevin avatar
    24 posts
    Member since:
    Jul 2011

    Posted 06 Sep 2011 Link to this post


    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";

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

  2. Peter
    Peter avatar
    6637 posts

    Posted 07 Sep 2011 Link to this post

    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.

    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 >>

  3. Kevin
    Kevin avatar
    24 posts
    Member since:
    Jul 2011

    Posted 13 Sep 2011 Link to this post

    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
  4. Ivana
    Ivana avatar
    657 posts

    Posted 16 Sep 2011 Link to this post

    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.
    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
Back to Top