Recurrence state of Radschedular not coming to Exception State

8 posts, 1 answers
  1. Kevin
    Kevin avatar
    24 posts
    Member since:
    Jul 2011

    Posted 29 Aug 2011 Link to this post

    Hi,
    Is this recurrence rule is exceptional:
    DTSTART:20110907T183000Z
    DTEND:20110908T083000Z
    RRULE:FREQ=WEEKLY;COUNT=5;INTERVAL=1;BYDAY=MO,TU
    EXDATE:20110911T183000Z

    as it is not coming to RecurrenceState.Exception in appointment_created event of radschedular.
    my schedular is working fine except on editing indivisual appointment of recurring appointment it doesnot show that appointment again on editing as it never comes to exceptional state in Appointment_created event.
    I am attaching the xml and my code of schedular,
    Pls Help.........

    Thanks
  2. Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011

    Posted 29 Aug 2011 Link to this post

    Hi, you need to handle the AppointmentUpdate event for the parrent recurring appointment to add the exception to the RecurrenceRule. Immedietly after, handle AppointmentInsert for the occurance being altered, unless it was a deletion then there is nothing to handle.

    Hope that helps,
    Dan
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin
    Kevin avatar
    24 posts
    Member since:
    Jul 2011

    Posted 30 Aug 2011 Link to this post

    How can i Know that Appointment is updated for whole recurring appointment or an indivisual appointment. Like i am already handling
    AppointmentUpdate  event and it changes the recurrence rule of appointment for that indivisual appoiintment with KeyWord EXDATE and Date of Indivisual appointment but appointment never comes to Exception State for that Date.

    Do I need to call appointment Insert after it Update Indivisual appointment. Please clarify ...
    it will be better if u can explain with Example.
    I an attaching my appointment Update and appointment Insert events.


    Thanks
  5. Answer
    Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011

    Posted 30 Aug 2011 Link to this post

    You may have a wrong signature. Try:
    protected void RadScheduler1_AppointmentInsert(object sender, AppointmentInsertEventArgs e)

    Then to test,
    1 Put a breakpoint on RadScheduler1_AppointmentInsert and RadScheduler1_AppointmentUpdate.
    2 Create a new recurring appointment.
    3 Edit one occurrence to add 1 hour to the start and end time.
    4 Click Save.
    5 Should break on the AppointmentInsert event handler to update the parrent appointment RecurrenceRule
    6 Should then break on the AppointmentInsert  handler to add a new appointment for the exception, and the RecurrenceParentShedule_id for this appointment should be set to the id of the parent recurring appointment.

    Dan
  6. Kevin
    Kevin avatar
    24 posts
    Member since:
    Jul 2011

    Posted 31 Aug 2011 Link to this post

    Thanks Dan for reply. it really helps, but also arises one issue. Now on editing single reccurrence i am able to insert new one with same id as of parent Appointment and new appointment shows in the schedular, but i am still not able to get image of exception appointment. it just show it as normal recurring appointment.is any other recurrence rule will be generated in acse of editing indivisual appointment ?
    Also if i edit while series of recurrence and i click on the reset exception link  then it is not deleting the new entry added but restore previously edited indivisual appointment making it two appointment on same day. One of recursive and one exceptional.
    I am attaching screenshots of Problem. Appointment Delete event does not fire on clicking link resetException link.
    Pls Reply..


    Thanks
  7. Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011

    Posted 31 Aug 2011 Link to this post

    Sorry, I don't know anything about exception images. But I am having the same problem with "reset exceptions". I also have other problems with my Scheduler I'm trying to fix so I don't know what to blame..

    I expected "reset exceptions" to work just the opposite as when an exception is created. First AppointmentUpdate handler to update the parent RecurrenceRule. Then AppointmentDelete to remove the actual exception appointment.

    Perhaps a new thread/question is needed for "reset exceptions"?

    Good Luck,
    Dan
  8. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 05 Sep 2011 Link to this post

    Hi guys,

    @Dan, could you, please, open a support ticket with a detailed description of the issue you experience with resetting the exception appointments?

    @Kevin, as much as I understood you are wondering if the exception icon should be displayed for exception from which a new recurrence series is started. If this is the question, then the answer is "no". The exception is no longer displayed since it's not clear if this appointment is an exception to the original recurrence rule or the secondary. Please, further explain if I didn't understand what seems to be the issue.

    Regards,
    Nikolay Tsenkov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  9. Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011

    Posted 06 Sep 2011 Link to this post

    My issue turned out to be different. regardless, it's ticket #459649.

    Thanks,
    Dan
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017