Private Sub RadScheduler1_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentInsertEventArgs) Handles RadScheduler1.AppointmentInsert
Dim CalendarEventBE As New CalendarEventBE
Dim CalendarEventDAL As New CalendarEventDAL
CalendarEventBE.OrganizationKey = ViewState(
"OrganizationKey")
CalendarEventBE.EventName = e.Appointment.Subject
CalendarEventBE.EventStartTime = e.Appointment.Start
CalendarEventBE.EventEndTime = e.Appointment.End
CalendarEventBE.EventComments = e.Appointment.Attributes(
"Description")
CalendarEventBE.RecurrenceRule = e.Appointment.RecurrenceRule
CalendarEventBE.RecurrenceParentID = e.Appointment.RecurrenceParentID
CalendarEventDAL.SaveEvent(CalendarEventBE)
RadScheduler1.Rebind
End Sub
7 Answers, 1 is accepted
I have tried to reproduce the problem you experience, but to no avail. Could you elaborate a bit more about the exact your scenario?
I prepared a sample project that demonstrates how to populate data using SQL Data Source scenario, where you could observe the behavior of the RadScheduler control. In order to create and store an appointment you do not need to implement AppointmentInsert event handler.
I am waiting to your reply.
Kind regards,
Boyan Dimitrov
the Telerik team
Thanks for your reply. I know how to populate a SQL datasource. My issue is the RecurringParentID = Nothing. I don't know how it should be populated.
I have opened support ticket #616752 and attached a working copy of the project that demonstrates my problem.
Thanks,
Susan
Please refer to the Bind to list demo where is shown how we recommend implementing scenarios whereDataSource property of RadScheduler is declared dynamically.
Hope this will be helpful.
Plamen
the Telerik team
Thanks,
Susan
The RecurrenceParentID is expected to be nothing( or null) in the master appointments-it is actually assigned to the recurrence exceptions to point to the master appointment. As for the question about the RecurrenceState-you do not have to store it in the DataSource.
Hope this will be helpful.
Plamen
the Telerik team
Would you please share a little bit more information about how you currently bind you RadScheduler because the issue may be completely different in your case and what is the unusual issue you observe? This way we will be able to inspect the issue and be more helpful.
Plamen
Telerik