RecurrenceParentID not populating

8 posts, 0 answers
  1. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 06 Oct 2012 Link to this post

    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


  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 10 Oct 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 11 Oct 2012 Link to this post

    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
  5. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 12 Oct 2012 Link to this post

    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.
  6. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 13 Oct 2012 Link to this post

    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
  7. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 18 Oct 2012 Link to this post

    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.
  8. Gagan Garg
    Gagan Garg avatar
    28 posts
    Member since:
    Jul 2009

    Posted 19 Jul 2013 Link to this post

    I am alos getting recurrenceparentid is null. Please assist me to resolve this issue.
  9. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 22 Jul 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017