Hi,
I'm trying to create a clientside function to insert a break-appointment in an existing appointment.
The scheduer is updated via AJAX.
for example
1 Appointment from 10:00 to 14:00
1. |10:00 ------------------------------------------------------------------------------- 20:00|
^oldAppointment^
after inserting the break there should be 3 appointments like this:
1.|10:00 ------------- 15:00| 2.|15:00 ------------- 16:00| 3.|16:00 ------------- 20:00|
^oldAppointment^ ^breakAppoinment^ ^afterbreakAppointment^
I hope i explained it comprehensible.
What I am doing so far is this:
When click on the existing big appointment this is fired (pseudo code / real code is syntactically correct, but too complex to post ):
When this event is fired is see 3 async-postack sent to the server, but only the last one (scheduler.insertAppointment(breakAppointment)) gets an answered, the other two(scheduler.updateAppointment(oldAppoinment);scheduler.insertAppointment(afterbreakAppointment);) remain waiting for an answer until timeout.
Is there a way to send these 3 commands in a single postback?
Or can I even setup the scheduler so the client can manipulate appointments as he likes an postback the whole scheduler-viewstate; like a "save changes"-button.
The RADTreeView has this functionality (trackChanges/commitChanges)
Any idea how I could resolve this problem.
I'd appreciate any help!
thanks in advance,
Lukas
I'm trying to create a clientside function to insert a break-appointment in an existing appointment.
The scheduer is updated via AJAX.
for example
1 Appointment from 10:00 to 14:00
1. |10:00 ------------------------------------------------------------------------------- 20:00|
^oldAppointment^
after inserting the break there should be 3 appointments like this:
1.|10:00 ------------- 15:00| 2.|15:00 ------------- 16:00| 3.|16:00 ------------- 20:00|
^oldAppointment^ ^breakAppoinment^ ^afterbreakAppointment^
I hope i explained it comprehensible.
What I am doing so far is this:
When click on the existing big appointment this is fired (pseudo code / real code is syntactically correct, but too complex to post ):
| oldAppoinment.set_end(15:00); | ||
| var breakAppointment = new Telerik.Web.UI.SchedulerAppointment(); | ||
| breakAppointment.set_start(15:00); | ||
| breakAppointment.set_end(DateAdd(16:00); var afterbreakAppointment = new Telerik.Web.UI.SchedulerAppointment();
|
When this event is fired is see 3 async-postack sent to the server, but only the last one (scheduler.insertAppointment(breakAppointment)) gets an answered, the other two(scheduler.updateAppointment(oldAppoinment);scheduler.insertAppointment(afterbreakAppointment);) remain waiting for an answer until timeout.
Is there a way to send these 3 commands in a single postback?
Or can I even setup the scheduler so the client can manipulate appointments as he likes an postback the whole scheduler-viewstate; like a "save changes"-button.
The RADTreeView has this functionality (trackChanges/commitChanges)
Any idea how I could resolve this problem.
I'd appreciate any help!
thanks in advance,
Lukas