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

Make entire view read-only?

1 Answer 54 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Bradley
Top achievements
Rank 1
Bradley asked on 31 May 2016, 06:51 PM

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?

Thanks!

Brad.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 02 Jun 2016, 09:26 AM
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.
.
Regards,
Yana
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GanttView
Asked by
Bradley
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or