7 Answers, 1 is accepted
Thank you for contacting us.
Yes, it is possible to make read-only RadScheduleView control. Unfortunately, it is not so straightforward. You need to implement custom read-only DragAndDrop behavior for the RadScheduleView control. Override the CanDrop and CanResize methods and return false to each one. After that, handle the AppointmentCreating, AppointmentEditing and AppointmentDeleting events and set CancelRoutedEventArgs.Cancel to true. If you don't want to show the read-only EditAppointment dialog window, handle the ShowDialog event and set CancelRoutedEventArgs.Cancel to true as well.
We consider adding a property to the RadScheduleView to make the control read-only.
Attached you can find the sample project. I hope this suit your needs.
George
the Telerik team
Hi
I was trying your example,, however I get this error..
The type or namespace name 'Xaml' does not exist in the namespace 'System' (are you missing an assembly reference?)
How can I resolve it?
Thanks a lot in advance
This happens because the project I sent you is in .NET 4.0, but you use .NET 3.5. I would suggest you to remove the System.Xaml assembly, because it is not available in the .NET 3.5 framework.
George
the Telerik team
Hello,
I've been using RadScheduleView too, and I needed this read-only functionality, but I couldn't do it as easily as it is in the RadScheduler.
Does the solution you proposed work the same way in Silverlight ?
Thanks
Please check our online example which demonstrate how to achieve read-only functionality in RadScheduleView. Also the approach is explained in this help article.
Hope this helps.
Greetings,
Yana
the Telerik team
Hi,
I checked the online help, and the proposed approached works good for me. But I didn't like the greyed effect of the slots and the appointments. So, I followed the Wpf sample project George posted in this thread, and handled the editing, closing and adding events, and also handled the ShowDialog event to avoid showing message boxes and edit boxes. It works now just the way I wanted it to!
Thank you for your help.
Greetings