Updating RecurrenceRule

8 posts, 0 answers
  1. Rune
    Rune avatar
    43 posts
    Member since:
    May 2009

    Posted 06 Jul 2009 Link to this post

    Hi,

    I am experiencing a problem in my scheduler. When I drag resize an appointment in week og day mode, the Recorrencerule is not updated, although I check the "resize the series" radio. This results in the appointment Start and End times being updated, but not the RecurrenceRule.

    I am taking the RecurrenceRule from the "appointmentToUpdate" parameter and putting that into the appointment I want to update.

    public override void Update( RadScheduler owner, Appointment appointmentToUpdate ) { 
          HL_Appointment app = GetDBAppointment( appointmentToUpdate ); 
          if( app != null ) { 
            app.End = appointmentToUpdate.End; 
            int redParID = 0; 
            if( appointmentToUpdate.RecurrenceParentID != null && int.TryParse( appointmentToUpdate.RecurrenceParentID.ToString(), out redParID ) ) 
              app.RecurrenceParentID = redParID; 
            app.RecurrenceRule = appointmentToUpdate.RecurrenceRule; 
            app.Start = appointmentToUpdate.Start; 
            app.Subject = appointmentToUpdate.Subject; 
            ReadyUpdateAppointmenRessources( appointmentToUpdate ); 
            db.SubmitChanges(); 
          } 
        } 


    Am I forgetting some small setting somewhere?



  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2831 posts

    Posted 09 Jul 2009 Link to this post

    Hi Rune,

    I've just tested this and the RecurrenceRule seems to be fine (see the attachment). Can you please run this through the debugger and confirm that the passed RecurrenceRule is indeed wrong?

    All the best,
    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. Rune
    Rune avatar
    43 posts
    Member since:
    May 2009

    Posted 21 Jul 2009 Link to this post

    Now I got back to this problem.

    I still have the problem and I have debugged the appointmentToUpdate.RecurrenceRule. It is not being updated when I dragresize an allready recurring appointment. The appointmentToUpdate.End is correct, but the RecurrenceRule has not been changed acordingly.

    I am using a custom schedulerprovider. But there is nothing custom about the "appointmentToUpdate" I get from the overrided Update method.

    I cannot explain why the appointmentToUpdate is broken!?
  4. Rune
    Rune avatar
    43 posts
    Member since:
    May 2009

    Posted 21 Jul 2009 Link to this post

    By the way. You kan see my example here:
    http://hourlife.test.co4.dk/hourkid.aspx?ID=13

    Choose the "Uge" button in the bottom to go to week mode. Then try to create an recurring appointment and drag resize one of the recurring ones.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 24 Jul 2009 Link to this post

    Hi Rune,

    Can you open a support ticket and send us a simple working demo project of the problem?


    Best wishes,
    Peter
    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.
  6. Rune
    Rune avatar
    43 posts
    Member since:
    May 2009

    Posted 24 Jul 2009 Link to this post

    I cannot send you my database. It seems that all your own examples use Session Datasources, XML datasources or the like. And they are working fine.

    Mine is using a Custom SchedulerProvider and a database. And my SchedulerProvider is getting wrong data from the Scheduler.

    I will try if I can make something that is failing and that I can send to you.
  7. Robert Bergbrant
    Robert Bergbrant avatar
    5 posts
    Member since:
    Sep 2009

    Posted 11 Nov 2011 Link to this post

    Did you find any solution for this problem? I´m facing the exact same problem. Please post a solution asap.
  8. Jayesh Goyani
    Jayesh Goyani avatar
    2733 posts
    Member since:
    May 2010

    Posted 11 Nov 2011 Link to this post

    Hello Robert Bergbrant ,

    you have to update RecurrenceRule manually.

    Let me know if you faced any any issue in this.

    Thanks,
    Jayesh Goyani
Back to Top