Hi
I am new to Telerik and I am working with the scheduler and want recurring appointments.
I am using the standard advanced insert and then hooking into the oninsert event and adding them to the database but I am only seeing the appointment once in the scheduler.
I have found in the forum about the \r\n for the new lines and have tried adding this but it doesn't seem to make any difference but can't seem to find anything else.
Can anyone see what I am doing wrong?
I am adding appointments like this:
I am then binding the scheduler like this:
This is my scheduler markup is:
Bex
I am new to Telerik and I am working with the scheduler and want recurring appointments.
I am using the standard advanced insert and then hooking into the oninsert event and adding them to the database but I am only seeing the appointment once in the scheduler.
I have found in the forum about the \r\n for the new lines and have tried adding this but it doesn't seem to make any difference but can't seem to find anything else.
Can anyone see what I am doing wrong?
I am adding appointments like this:
protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e) { //add the new appointment to the db int? recurrentParentId = null; if (e.Appointment.RecurrenceParentID != null) recurrentParentId = (int)e.Appointment.RecurrenceParentID; AppointmentManager.AddUserAppointment( UserId, 1, e.Appointment.Start, e.Appointment.End, e.Appointment.RecurrenceRule, recurrentParentId, e.Appointment.Description, e.Appointment.Subject); BindSchedule(); }I am then binding the scheduler like this:
mySchedule.DataSource = GetSchedule(); //calls the database and gets the appointmentsmySchedule.DataBind();This is my scheduler markup is:
<telerik:RadScheduler runat="server" ID="mySchedule" DayStartTime="08:00:00" DayEndTime="22:00:00" StartInsertingInAdvancedForm="true" ShowNavigationPane="true" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete" DataKeyField="AppointmentId" DataSubjectField="Subject" DataDescriptionField="Description" DataStartField="Start" DataEndField="EndX" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId" FirstDayOfWeek="Monday" ShowHeader="true" ShowFooter="false"> <AdvancedForm Modal="true" /> <DayView UserSelectable="false" /> <WeekView UserSelectable="false" /> <MonthView UserSelectable="false" /> <TimeSlotContextMenuSettings EnableDefault="true" /> <AppointmentContextMenuSettings EnableDefault="true" /> <ResourceTypes> <telerik:ResourceType KeyField="ID" Name="Type" TextField="Keyword" ForeignKeyField="AppointmentTypeID" DataSourceID="AppointmentTypesDataSource" /> </ResourceTypes> <ResourceStyles> <telerik:ResourceStyleMapping Type="Type" Text="Event" ApplyCssClass="rsCategoryGreen" /> <telerik:ResourceStyleMapping Type="Type" Text="Personal" ApplyCssClass="rsCategoryBlue" /> <telerik:ResourceStyleMapping Type="Type" Text="Meeting" ApplyCssClass="rsCategoryYellow" /> </ResourceStyles> <AppointmentTemplate> <!--narrowed down template--> <div > <h2> <%# Eval("Subject") %> </h2> <div> </div> </div> </AppointmentTemplate></telerik:RadScheduler>Bex
