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

AppointmentUpdate is fired by drag and drop?

1 Answer 45 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jean-Marc
Top achievements
Rank 1
Jean-Marc asked on 14 Jun 2012, 10:18 AM
As I move an appointement a server side event AppointmentUpdate fires.
AppointmentUpdate fires also when an update comes from advanceform.

How do I know if it is fired because of a drag and drop? 
thank you

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 14 Jun 2012, 11:08 AM
Hi Jean-Marc,

 
Here is one way to make the difference by using the AppointmentCommand event:

public bool flag = true;
 
  protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
  {
      if (flag)
      {
          Response.Write("Drag Update");
      }
      else
      {
          Response.Write("Advanced Form Update");
      }
  }
 
 
  protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)
  {
      if (e.CommandName=="Update")
      {
          flag = false;
      }
  }

Hope this will help you.

All the best,
Plamen Zdravkov
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.
Tags
Scheduler
Asked by
Jean-Marc
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or