Appointment Moving validation

4 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 02 Mar 2008 Link to this post

    Currently scheduler allows to move appointment from one resource to another - but the client side event only has method get_newStartTime() - how do we find out what resource its moving to?

    In ideal case, this is what I need:
    - be able to find out what resource its moving to
    - be able to find if there is any appointment at the target slot? and that appointment object.

    Thanks,
    Piyush

  2. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 03 Mar 2008 Link to this post

    Hi Piyush,

    The described problem is a limitation of the current version of RadScheduler. We are planning to extend the client-side capabilities of RadScheduler in the next release, including the possibility to check the source/target resources on drag and drop.

    Sincerely yours,
    Dimitar Milushev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 03 Mar 2008 Link to this post

    Checking the Source/Target resource is critical - please let me know when you publish your next release.

    -Piyush
  5. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 05 Mar 2008 Link to this post

    Hello Piyush,

    The usual approach for your scenario is to handle the server-side OnAppointmentUpdate event and do the necessary validations in the event handler. The AppointmentUpdateEventArgs that are passed to the handler have two properties - Appointment and ModifiedAppointment.

    The Appointment property contains the original version of the appointment and the ModifiedAppointment contains the "future" version of the appointment i.e. how it would look like after the update. You can use the various properties of the two appointment versions to decide if the update is valid. You can then prevent the update by setting the Cancel property of AppointmentUpdateEventArgs to "true".

    All this is possible with the current version of RadScheduler and we recommend this approach if it suits your scenario.

    Please let us know if you need more help or information.

    All the best,
    Dimitar Milushev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top