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

Check if the appointment is moved by mouse dragging or a dialog

1 Answer 60 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dani
Top achievements
Rank 1
Dani asked on 25 Jan 2012, 04:39 PM
How to check if the appointment is moved by mouse dragging or a dialog?
Is there some property in the Appointment class? Or is there some other way?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 27 Jan 2012, 05:14 PM
Hi Dani,

You can handle the OnClientAppointmentResizeStart and OnClientAppointmentMoveStart and use the following code to achieve this scenario:

<script type="text/javascript">
      function OnClientAppointmentResizeOrMoveStart(sender, args) {
         document.getElementById("HiddenField1").value = "Resize or Move";
     }
  </script>
  <asp:HiddenField runat="server" ID="HiddenField1" Value="AdvancedForm" />
 
  <telerik:RadScheduler runat="server" ID="RadScheduler1" OnClientAppointmentResizeStart="OnClientAppointmentResizeOrMoveStart"
      OnClientAppointmentMoveStart="OnClientAppointmentResizeOrMoveStart" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate">
  </telerik:RadScheduler>
protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
  {
      Response.Write(HiddenField1.Value);
      HiddenField1.Value="AdvancedForm";
  }

Hope this will be helpful.

Kind regards,
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
Dani
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or