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

2 posts, 0 answers
  1. Dani
    Dani avatar
    20 posts
    Member since:
    Dec 2011

    Posted 25 Jan 2012 Link to this post

    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?
  2. Plamen
    Plamen avatar
    3079 posts

    Posted 27 Jan 2012 Link to this post

    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";
      <asp:HiddenField runat="server" ID="HiddenField1" Value="AdvancedForm" />
      <telerik:RadScheduler runat="server" ID="RadScheduler1" OnClientAppointmentResizeStart="OnClientAppointmentResizeOrMoveStart"
          OnClientAppointmentMoveStart="OnClientAppointmentResizeOrMoveStart" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate">
    protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)

    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
Back to Top