AppointmentUpdate is fired by drag and drop?

2 posts, 1 answers
  1. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 14 Jun 2012 Link to this post

    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
  2. Answer
    Plamen avatar
    3048 posts

    Posted 14 Jun 2012 Link to this post

    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");
              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.
Back to Top