Make entire view read-only?

2 posts, 0 answers
  1. Bradley
    Bradley avatar
    4 posts
    Member since:
    Nov 2015

    Posted 31 May Link to this post

    I'm sure this is trivial, but I don't see a property that would make it happen.  I'd like to make my entire GanttView read-only, so that it doesn't permit any changes to dates or tasks either in the text columns or by dragging tasks around.  I've tried setting "IsEnabled" to false, but that prevents me from resizing the columns.  Suggestions?



  2. Yana
    Yana avatar
    4547 posts

    Posted 01 Jun Link to this post

    Hi Brad,

    First, you will need to implement custom DragDropBehavior and ResizeBehavior of the GanttView in order to prevent dragging and resizing of tasks. The approach is demonstrated in the Custom Drag and Drop Behaviors topic.

    As to the Grid part - you could set IsReadOnly property of the controls inside the CellEditTemplate in case at some point editing will be allowed, or completely remove the CellEditTemplate.

    I hope this would be helpful.
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top