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

Relations readonly 2014

2 Answers 54 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Nikola
Top achievements
Rank 1
Nikola asked on 30 Sep 2014, 11:37 AM
Hi,

i need like this guy needed it before some years, that the user are not allowed to do anything in the GraphicalView.
I got almost every property i want, so the user cannot resize the items or move it anymore, it works just great with readonly.
But the user is can still create new relations between items. I donĀ“t want users to do that.

Similar to this, http://www.telerik.com/forums/readonly-gantt . But this thread is ment for WPF, i use GanttView
for WinControlls, i mean WinForms.


Thank you for your help
Niko

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikola
Top achievements
Rank 1
answered on 02 Oct 2014, 10:36 AM
Thanks for your help.

Solved it with catching the event with e.cancel.


{
    this.radGanttView.LinkAdding += new GanttLinkAddingEventHandler(radGanttView_LinkAdding);
}

        void radGanttView_LinkAdding(object sender, GanttViewLinkAddingEventArgs e)
        {
            e.Cancel = true;
        }
0
Stefan
Telerik team
answered on 02 Oct 2014, 12:15 PM
Hello Nikola,

I can confirm this is the correct way to cancel creation of a link, hence I am marking your post as answer to this thread.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GanttView
Asked by
Nikola
Top achievements
Rank 1
Answers by
Nikola
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or