Disable Right Click in AutoHideArea

4 posts, 0 answers
  1. Toby Riley
    Toby Riley avatar
    40 posts
    Member since:
    Aug 2012

    Posted 14 Feb 2011 Link to this post

    I have disabled the standard right click functionality in my application but the AutoHideArea of the docking control still allows this because it is a popup.
    How can I disable this?

    Thanks.
  2. George
    Admin
    George avatar
    1332 posts

    Posted 17 Feb 2011 Link to this post

    Hello Tobias,

     
    How do you disable the right click? If you give us more information about your scenario it would be very helpful.

    Best wishes,
    George
    the Telerik team
  3. DevCraft banner
  4. Toby Riley
    Toby Riley avatar
    40 posts
    Member since:
    Aug 2012

    Posted 17 Feb 2011 Link to this post

    To prevent right click you do this on the container:

    LayoutRoot.MouseRightButtonDown += (s, e) => { e.Handled = true; };
  5. George
    Admin
    George avatar
    1332 posts

    Posted 22 Feb 2011 Link to this post

    Hello Tobias,

     
    I would suggest you to use the VisualTreeHelper.GetOpenPopups() method. This will return all opened popups. You could disable the right click in each one manually.

    I hope this helps.

    Greetings,
    George
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top