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

How to Capture the RecurenceParentId?

5 Answers 53 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
sabarishbabu
Top achievements
Rank 1
sabarishbabu asked on 27 Jul 2009, 01:56 PM

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



5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 28 Jul 2009, 07:49 AM
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.
0
towpse
Top achievements
Rank 2
answered on 26 Nov 2009, 05:50 PM
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?
0
Peter
Telerik team
answered on 27 Nov 2009, 09:22 AM
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.
0
towpse
Top achievements
Rank 2
answered on 30 Nov 2009, 02:17 PM
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
0
Peter
Telerik team
answered on 01 Dec 2009, 11:55 AM
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.
Tags
Scheduler
Asked by
sabarishbabu
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
towpse
Top achievements
Rank 2
Peter
Telerik team
Share this question
or