Quantcast
Viewing all articles
Browse latest Browse all 7205

How to implement a client-side confirmation on the user action modifying the appointment

This example demonstrates how drag-n-dropping and resizing appointment actions can be confirmed using client-side scripting technique. The ASPxScheduler client-side events AppointmentDrop and AppointmentResize are handled to show a dialog window prompting the end-user to apply changes. If "OK" button is clicked, the Apply method of the ASPxClientAppointmentOperation object that is passed to the displayed popup control, is executed. Otherwise, it calls the Cancel method. The Apply method raises the callback and accomplishes the appointment modification. The Cancel method leaves the appointment intact.
Note the use of the temporary property cpOperation to hold the ASPxClientAppointmentOperation object obtained in the event handler.

Question Comments

Added By: DClayton at: 7/21/2014 9:40:05 AM    

I've been pointed to this as a solution to my problem, I am setting my function on the code behind
btnOk.ClientSideEvents.Click = "function(s, e) { OnBtnOKClick(); }";

then in my javascript I am trying to save the appointment, but e is undefined.
what am I doing wrong?
function OnBtnOKClick(s, e) {
       scheduler.cpOperation = e.operation;
       scheduler.cpOperation.apply();
   };

Added By: Oleg (DevExpress Support) at: 7/21/2014 11:53:27 PM    Hello David,

To process your recent post more efficiently, I created a separate ticket on your behalf: <sclink viewType="IDSubject" id=T132019" />.
This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


Viewing all articles
Browse latest Browse all 7205

Trending Articles