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

RecurrenceParentID not populating

7 Answers 57 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Susan
Top achievements
Rank 1
Susan asked on 06 Oct 2012, 04:54 PM
I have looked and looked, but cannot seem to find an answer to this. I know it is a simple thing I'm overlooking. I'm using recurrence with a SQL data store. The 'RecurrenceRule' is populating, but I cannot get the RecurrenctParentID to populate. Is this something I generate and store or is it something that should be generated. My insert is as follows. My SQL table has the RecurrenceRule as nvarchar(1024) and the RecurrenceParentID as Int32. I use the advanced form template.
 

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

Sort by
0
Boyan Dimitrov
Telerik team
answered on 10 Oct 2012, 02:00 PM
Hello Susan,

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
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Susan
Top achievements
Rank 1
answered on 11 Oct 2012, 03:03 PM
Boyan,
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
0
Plamen
Telerik team
answered on 12 Oct 2012, 01:58 PM
Hi 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.

All the best,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Susan
Top achievements
Rank 1
answered on 13 Oct 2012, 02:54 PM
Thanks. That does help some, as I copied this and it is working. However, it stores the information in Session, where I use SQL. If I look at the fields it is storing in session when I do an insert, the RecurrenceParentID is nothing, but the RecurrenceState is set to Master. Do I have to store the RecurrenceState in my SQL database table? Should the RecurrenceParentID be equal to Nothing at this point - if so, when is it actually populated?

Thanks,
Susan
0
Plamen
Telerik team
answered on 18 Oct 2012, 06:12 AM
Hi 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.

Kind regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Gagan Garg
Top achievements
Rank 1
answered on 19 Jul 2013, 02:49 PM
I am alos getting recurrenceparentid is null. Please assist me to resolve this issue.
0
Plamen
Telerik team
answered on 22 Jul 2013, 11:04 AM
Hello Gagan,

 
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.

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Scheduler
Asked by
Susan
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Susan
Top achievements
Rank 1
Plamen
Telerik team
Gagan Garg
Top achievements
Rank 1
Share this question
or