hoew to use move_end of an appointment to affect another appointment

2 posts, 0 answers
  1. Allen
    Allen avatar
    111 posts
    Member since:
    Apr 2012

    Posted 18 Dec 2012 Link to this post

    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

  2. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 19 Dec 2012 Link to this post

    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.
Back to Top