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

[Solved] Appointments Movable

3 Answers 146 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Bryan
Top achievements
Rank 1
Bryan asked on 21 May 2008, 02:35 PM
Is there a way to restrict the movability of appointments even though the appointment is editable?

What I am trying to do is have certain appointments being locked down as not editable despite being able to double-click on them and view the entire information in the form.

3 Answers, 1 is accepted

Sort by
0
Bryan
Top achievements
Rank 1
answered on 21 May 2008, 08:39 PM
I've solved this issue.

Thank you.
0
Krishnangshu
Top achievements
Rank 1
answered on 26 May 2008, 06:58 AM
plz........send me the answer how u solve it
0
Peter
Telerik team
answered on 26 May 2008, 10:52 AM
Hello Krishnangshu,

One possible solution is to use Custom Attributes to mark which appointment can be moved and which one cannot be moved. Then cancel the OnClientAppointmentMoving event depending on the value of the custom attribute. For example, let's say that we set the allowMove custom attribute field:

 <script type="text/javascript">  
    function OnClientAppointmentMovingHandler(sender, evenArgs)  
    {  
        if(evenArgs.get_appointment().get_attributes().getAttribute("allowMove")=="false")  
        {  
            evenArgs.set_cancel(true);  
        }  
    }  
    </script> 

 <telerik:RadScheduler ID="RadScheduler1" runat="server"   
        CustomAttributeNames="allowMove" 
        OnClientAppointmentMoving="OnClientAppointmentMovingHandler" 
        EnableCustomAttributeEditing ="true" 


All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Bryan
Top achievements
Rank 1
Answers by
Bryan
Top achievements
Rank 1
Krishnangshu
Top achievements
Rank 1
Peter
Telerik team
Share this question
or