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

Updating RecurrenceRule

7 Answers 107 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rune
Top achievements
Rank 2
Rune asked on 06 Jul 2009, 11:27 AM
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?



7 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 09 Jul 2009, 02:22 PM
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.
0
Rune
Top achievements
Rank 2
answered on 21 Jul 2009, 12:32 PM
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!?
0
Rune
Top achievements
Rank 2
answered on 21 Jul 2009, 12:37 PM
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.
0
Peter
Telerik team
answered on 24 Jul 2009, 09:10 AM
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.
0
Rune
Top achievements
Rank 2
answered on 24 Jul 2009, 09:17 AM
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.
0
Robert Bergbrant
Top achievements
Rank 1
answered on 11 Nov 2011, 11:43 AM
Did you find any solution for this problem? I´m facing the exact same problem. Please post a solution asap.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 11 Nov 2011, 01:07 PM
Hello Robert Bergbrant ,

you have to update RecurrenceRule manually.

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

Thanks,
Jayesh Goyani
Tags
Scheduler
Asked by
Rune
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
Rune
Top achievements
Rank 2
Peter
Telerik team
Robert Bergbrant
Top achievements
Rank 1
Jayesh Goyani
Top achievements
Rank 2
Share this question
or