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

Appointment Moving validation

3 Answers 109 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 02 Mar 2008, 10:13 PM
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

3 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 03 Mar 2008, 11:28 AM
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
0
Piyush Bhatt
Top achievements
Rank 2
answered on 03 Mar 2008, 06:37 PM
Checking the Source/Target resource is critical - please let me know when you publish your next release.

-Piyush
0
Dimitar Milushev
Telerik team
answered on 05 Mar 2008, 09:19 AM
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
Tags
Scheduler
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
Dimitar Milushev
Telerik team
Piyush Bhatt
Top achievements
Rank 2
Share this question
or