Relations readonly 2014

3 posts, 1 answers
  1. Nikola
    Nikola avatar
    8 posts
    Member since:
    Sep 2014

    Posted 30 Sep 2014 Link to this post

    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. Answer
    Nikola
    Nikola avatar
    8 posts
    Member since:
    Sep 2014

    Posted 02 Oct 2014 Link to this post

    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;
            }
  3. DevCraft banner
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 02 Oct 2014 Link to this post

    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.
     
Back to Top