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

drag&drop and appointment details

2 Answers 49 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
guillaume
Top achievements
Rank 1
guillaume asked on 08 Oct 2008, 01:21 PM
hi,

I want to not allow any change about appointment details but to be able to drag&drop an appointment to an other day.

look like AllowEdit block both, how could I only disable edit detail?

thank

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 08 Oct 2008, 03:50 PM
Hello guillaume,

Please, try the following:

 <script type="text/javascript">  
        function OnClientAppointmentClick(sender, eventArgs)   
        {  
            eventArgs.get_appointment().set_allowEdit(false);  
        }  
      
    </script> 
    <telerik:RadScheduler ID="RadScheduler1"   
    OnClientAppointmentClick="OnClientAppointmentClick" 


All the best,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
guillaume
Top achievements
Rank 1
answered on 09 Oct 2008, 07:58 PM
thank but eventArgs.get_appointment().set_allowEdit(false); have no effect

fortunatly we have found the solution with

 function OnClientAppointmentEditing(sender, eventArgs)
 {
    eventArgs.set_cancel(true);
 }
Tags
Scheduler
Asked by
guillaume
Top achievements
Rank 1
Answers by
Peter
Telerik team
guillaume
Top achievements
Rank 1
Share this question
or