Hello All,
I just want to disable appointment double click option. here let me explain clearly
In the schedule we have option that we can edit the appointment using double click on that appointment right. but I just want to desable that. but i need the drag and drop functionality should be enabled how ever i need to disable to drag and drop from one date to another date also. Could any one please help me on this. Its an urgent.
Thanks,
Ram
I just want to disable appointment double click option. here let me explain clearly
In the schedule we have option that we can edit the appointment using double click on that appointment right. but I just want to desable that. but i need the drag and drop functionality should be enabled how ever i need to disable to drag and drop from one date to another date also. Could any one please help me on this. Its an urgent.
Thanks,
Ram
5 Answers, 1 is accepted
0
Hello,
You should cancel OnClientAppointmentEditing:
All the best,
Peter
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
You should cancel OnClientAppointmentEditing:
| <script type="text/javascript"> |
| function OnClientAppointmentEditing(sender, eventArgs) { |
| eventArgs.set_cancel(true); |
| } |
| </script> |
All the best,
Peter
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
ESM Dev
Top achievements
Rank 1
answered on 13 Apr 2009, 03:33 PM
Hello Peter,
Thanks for your reply. I just pasted that in my aspx page but still not working.
thanks,
Ram
Thanks for your reply. I just pasted that in my aspx page but still not working.
thanks,
Ram
0
You need to hook to the event too:
| <telerik:RadScheduler runat="server" ID="RadScheduler1" |
| OnClientAppointmentEditing="OnClientAppointmentEditing" ... /> |
| * * * |
Greetings,
Peter
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
ESM Dev
Top achievements
Rank 1
answered on 13 Apr 2009, 04:09 PM
Thanks its working fine but how to disable draging and droping from one column to another column. here column in sence date.
0
Hello ESM Dev,
You can use the following Javascript:
Also don't forget to hook the events too. Simply add the following to the RadScheduler declaration:
OnClientAppointmentMoveEnd="onClientAppointmentMoveEnd"
OnClientAppointmentMoving="onClientAppointmentMoving"
Sincerely yours,
Dimitar Milushev
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
You can use the following Javascript:
| <script type="text/javascript"> |
| function onClientAppointmentMoveEnd (sender, args) { |
| var targetSlotTime = args.get_targetSlot().get_startTime(); |
| var appointment = args.get_appointment(); |
| if(targetSlotTime.getDate() != appointment.get_start().getDate()) |
| args.set_cancel(true); |
| appointment.get_element().style.border = ""; |
| } |
| function onClientAppointmentMoving (sender, args) { |
| var targetSlotTime = args.get_targetSlot().get_startTime(); |
| var appointment = args.get_appointment(); |
| if(targetSlotTime.getDate() != appointment.get_start().getDate()) |
| appointment.get_element().style.border = "1px solid red"; |
| else |
| appointment.get_element().style.border = ""; |
| } |
| </script> |
Also don't forget to hook the events too. Simply add the following to the RadScheduler declaration:
OnClientAppointmentMoveEnd="onClientAppointmentMoveEnd"
OnClientAppointmentMoving="onClientAppointmentMoving"
Sincerely yours,
Dimitar Milushev
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.