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

hoew to use move_end of an appointment to affect another appointment

1 Answer 42 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Allen
Top achievements
Rank 1
Allen asked on 18 Dec 2012, 11:13 PM
I'm trying to drag one appointment up, and another appointment will also move up.
I'm using the following codes.  It changes the end time of another appointment, but the scheduler doesn't show any change:

function OnClientAppointmentMoveEnd(sender, eventArgs) {
      //if available end time is less then preferred end time, the prefered end time should match the available end time
      for (var i = 0; i < apps.get_count(); i++) {
          if (apps._array[i]._subject == 'preferred') {
              if (apps._array[i].get_end().format('yyyy/mm/dd HH:mm:ss') > newEndTime.format('yyyy/mm/dd HH:mm:ss')) {
                  apps._array[i].set_end(newEndTime);
                  break;
              }

          }
      } 
}

Please refer to the PNG files

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 19 Dec 2012, 01:38 PM
Hello Allen,

 
You can use the updateAppointment function of the client RadScheduler object as it is explained with a sample in this help topic.

Hope this will be helpful.

Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Allen
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or