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

Disable Drag and Drop

3 Answers 142 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 21 Feb 2011, 08:23 AM
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

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Feb 2011, 01:17 PM
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.
0
Rahul
Top achievements
Rank 1
answered on 21 Feb 2011, 03:12 PM
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

0
Accepted
Shinu
Top achievements
Rank 2
answered on 22 Feb 2011, 06:15 AM
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.
Tags
Scheduler
Asked by
Rahul
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rahul
Top achievements
Rank 1
Share this question
or