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

How to disable drag and drop options in radscheduler

8 Answers 573 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Maddela
Top achievements
Rank 1
Maddela asked on 14 Nov 2011, 11:19 AM
Hi,

I am using Rad Scheduler to show appointments, but i don't want to provide drag and drop of appointments option. Can you please tell me how can i disable drag and drop option for Rad Scheduler.

Thanks,
Maddela.

8 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Nov 2011, 11:57 AM
Hello Madela,

Try the following javascript:
JS:
<script type="text/javascript">  
function OnClientAppointmentMoveStart(sender, eventArgs)   
 {           
    eventArgs.set_cancel(true);  
 }  
 </script>

-Shinu.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 14 Nov 2011, 11:59 AM
Hello,

for disabling drag and drop functionality - there is 3 ways to do that:

1.Set the IsReadOnly property of scheduler to true.
2.Hook on the AppointmentEditing event and set e.Cancel = true in its event handler.
3. Change the cursor type. // Not sure this (3ed) way is worked 100% or not

Thanks,
Jayesh Goyani
0
Maddela
Top achievements
Rank 1
answered on 14 Nov 2011, 12:05 PM
Do i need to call this java script function any where ? or it will fire directly ?
0
Maddela
Top achievements
Rank 1
answered on 14 Nov 2011, 12:06 PM
Do i need to call this java script function any where ? or it will fire directly ?
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 14 Nov 2011, 12:10 PM
Hello,

Yes, You can write this function anywhere.

<telerik:RadScheduler OnClientAppointmentMoveStart="OnClientAppointmentMoveStart"></telerik:RadScheduler>

And you can write the JS function (which was written by shinu) in your  page or Master page  or in common js file also.

Note : i suggest that please write this js function in common js or in your page.

Thanks,
Jayesh Goyani
0
Maddela
Top achievements
Rank 1
answered on 14 Nov 2011, 12:14 PM
Hi Jayesh,

ThanQ so much working fine !
0
Sandy
Top achievements
Rank 1
answered on 06 Mar 2012, 03:46 PM
Hi.
I need to disable the options button in adding the appointment.
Could u please help me in Rad scheduler.
help needed very urgently.could anyone please help me.
Thank you.
0
Peter
Telerik team
answered on 06 Mar 2012, 04:14 PM
Hi Sandy,

Try the following:
<telerik:RadScheduler ID="RadScheduler1" runat="server">
      <AdvancedForm Enabled="false" />
  </telerik:RadScheduler>


Greetings,
Peter
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
Maddela
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Jayesh Goyani
Top achievements
Rank 2
Maddela
Top achievements
Rank 1
Sandy
Top achievements
Rank 1
Peter
Telerik team
Share this question
or