How to Capture the RecurenceParentId?

6 posts, 0 answers
  1. sabarishbabu
    sabarishbabu avatar
    136 posts
    Member since:
    Apr 2009

    Posted 27 Jul 2009 Link to this post

    Hi,

     

    1. I am using the scheduler to creating arecurring appointments, as pre the documentations RecurenceParentId should have been created for theentry. But, I find the value as null 

    2. How, where do I find the value and How cani Check for conflicting appointments?.

    3. Can you send me any sample code?

     

    Thanks

    Sabarish



  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 28 Jul 2009 Link to this post

    Hi,

    The RecurrenceParentID value will not be populated until a recurrence exception is created by modifying/deleting an appointment from the series. More details here:
    http://www.telerik.com/help/aspnet-ajax/schedule_serversideworkingwithrecurringappointments.html

    Conflict checking is only possible for a given time range. Once the range is known you can evaluate the recurrence rule and check if any of the occurrences fall within that range. More information about evaluating recurrence rules is available here:
    http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.recurrencerule-occurrences.html

    Sincerely yours,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 26 Nov 2009 Link to this post

    I'm doing all the back end work in my app myself.
    Are there any examples you can provide that actually show the Recurrence Parent Id being used properly to edit an exception occurrence?

    Should the exception occurrence have its state set to exception?
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 27 Nov 2009 Link to this post

    Hello towps,

    You can use the RecurrenceExceptionCreated event to capture the RecurrenceParentID.

    protected void RadScheduler1_RecurrenceExceptionCreated(object sender, RecurrenceExceptionCreatedEventArgs e)
       {
           //e.OccurrenceAppointment.RecurrenceParentID
       }

    I am not sure though what exactly you need to accomplish so if the above suggestion does not help you, please elaborate on your case.


    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 30 Nov 2009 Link to this post

    When I try to delete an occurrence within a recurring series, that is not the first appointment that I created, I get an error that an object with the appointment Id for the first appointment that I created cannot be found; even though I can confirm that the first appointment that I craeted does have the Id that it is complaining about.

    I'm just trying to get my head around how this parent, recurring stuff works.

    What should I expect to handle when I delete a child occurrence of a recurring series?

    thanks
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 01 Dec 2009 Link to this post

    Hi towps,

    Can you explain how exactly you attempt to delete an appointment? A code sample would be helpful.


    Regards,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017