Disable Drag and Drop

4 posts, 1 answers
  1. Rahul
    Rahul avatar
    142 posts
    Member since:
    May 2009

    Posted 21 Feb 2011 Link to this post

    Hello

     See the following demo link

    http://demos.telerik.com/aspnet-ajax/scheduler/examples/export/defaultcs.aspx

    In this case in MONTH tab. we can easily drag and drop the exam. I don't want to drag and drop option in case MONTH ..

    How to disable the drag and drop in case of Month
    URGENTTTTTTTTTTTTT


    Thanks
    Regards
    Rahul
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Feb 2011 Link to this post

    Hello,


    If you want to disable moving the appointments through dragging, then you could cancel the OnClientAppointmentMoveStart event using args.set_cancel(true) method.

    For more information: Disabling the Scheduler Appointment Drag Option with edit being enabled


    -Shinu.
  3. Rahul
    Rahul avatar
    142 posts
    Member since:
    May 2009

    Posted 21 Feb 2011 Link to this post

    Hello Shinu Thanks for the reply ...

     But i want to stop drag and drop only in case of if user selected Month view.  Don't want to stop drag and drop in case of Day,Week,Time line.

    Only if user selected MONTH view.



    thnaks
    Regards
    rahul

  4. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Feb 2011 Link to this post

    Hello Rahul,

    You could achieve this by checking the current selected view.

    ClientSide:
    function OnClientAppointmenMoveStart(sender, args)
     
         if (sender.get_selectedView() == Telerik.Web.UI.SchedulerViewType.MonthView)
         {     
            args.set_cancel(true); 
         }
     }


    Thanks,
    Shinu.
Back to Top