Context Menu of RadGridView is not being displayed inside RadPane

6 posts, 0 answers
  1. Nitin
    Nitin avatar
    19 posts
    Member since:
    Jun 2010

    Posted 24 Mar 2011 Link to this post

    Hi,

    I have a RadGridView inside RadPane and RadGridView has a context menu. If RadPane is in autohide state and I right click on RadGridView to open context menu, context menu is opened but RadPane gets collapsed and hence context menu also gets closed.

    I will be very thankful if anyone can provide solution for this problem.

  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 29 Mar 2011 Link to this post

    Hi Nitin,

    When the Pane in expanded from the autohide area and loses the focus it gets collapsed. That is by design. We have logged a feature request for customizing the auto hide area events, which you can view here. You can vote for it, track its status and see when it is going to be implemented.

    Hope this information helps. Please let us know if you have any other questions.

    All the best,
    Konstantina
    the Telerik team
  3. UI for WPF is Visual Studio 2017 Ready
  4. Michael Blanchet
    Michael Blanchet avatar
    21 posts
    Member since:
    Sep 2009

    Posted 12 Jul 2011 Link to this post

    I have a more general issue with RadPane context menus. When the RadPane is not started in the central docking position, the context menu will sometimes appear in random places (or not at all). This seems to be more of a problem if the RadPane is initially unpinned and then pinned.
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 18 Jul 2011 Link to this post

    Hello Michael,

    Could you please elaborate on this issue? Could you pleas share with us which version of the controls are you using, is the Docking control placed in other control and anything that you find essential. Also, sending us a sample project in which we can observe the issue will be very helpful.

    Looking forward to your reply.

    Kind regards,
    Konstantina
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  6. Michael Blanchet
    Michael Blanchet avatar
    21 posts
    Member since:
    Sep 2009

    Posted 22 Jul 2011 Link to this post

    Hello Konstantina

    I am now using the .Net 4 version of the Q2 2011 WPF controls and the behavior has changed somewhat.

    The docking control is in the main window of the application. By the way, with the Q2 release of the RadDocking, the PreviewWindowClose seems to have disappeared. 

    I add a RadSplitContainer and set the InitialPosition to DockedRight and then add a RadPaneGroup to that to which I add my RadPane.

    For the context menu, I was simply using a  RadPane.ContextMenuTemplate. If I tried to open the context menu by right clicking on the Pane after opening it, I get a 'UI Unhandled Exception: System.InvalidOperationException: The specified visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals.
     
    I tried to resolve the problem by changing the XAML to remove the standard context menu from the RadPane with ContextMenuTemplate="{x:Null}" and then adding the context menu directly. It behaves the same way.

    If I unpin the RadPane and then re-pin it, the context menu works fine.

    Thanks,
    Michael
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 26 Jul 2011 Link to this post

    Hi Michael,

    I am afraid I wasn't able to reproduce the error. Attached I am sending you the test project I used. Please feel free to edit it in order to reproduce the issue and send it back to us. In that way we will be able to track down the source of the problem in a timely manner.

    Looking forward to your reply.

    Greetings,
    Konstantina
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top
UI for WPF is Visual Studio 2017 Ready