Read-Only not supported?

8 posts, 1 answers
  1. Pavel
    Pavel avatar
    21 posts
    Member since:
    Sep 2010

    Posted 04 Feb 2011 Link to this post

    I woud need read only ScheduleView, but there isn´t property IsReadOnly in RadScheduleView. Read-Only property is not supported in RadScheduleView? Or is it possible to do somehow RadScheduleView read only?
  2. Answer
    George
    Admin
    George avatar
    1332 posts

    Posted 09 Feb 2011 Link to this post

    Hi Pavel,

     
    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.

    Best wishes,
    George
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Pavel
    Pavel avatar
    21 posts
    Member since:
    Sep 2010

    Posted 09 Feb 2011 Link to this post

    Thank you very much for your help
  5. Anoop
    Anoop avatar
    76 posts
    Member since:
    Sep 2006

    Posted 10 Feb 2011 Link to this post

    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

  6. George
    Admin
    George avatar
    1332 posts

    Posted 15 Feb 2011 Link to this post

    Hi Anoop,

     
    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.

    Greetings,
    George
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  7. Hamza
    Hamza avatar
    11 posts
    Member since:
    Mar 2011

    Posted 09 Apr 2011 Link to this post


    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
     
  8. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Apr 2011 Link to this post

    Hello,

    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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Hamza
    Hamza avatar
    11 posts
    Member since:
    Mar 2011

    Posted 11 Apr 2011 Link to this post


    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
Back to Top
UI for WPF is Visual Studio 2017 Ready