Unpinned Pane and Context Menu

6 posts, 0 answers
  1. Jon
    Jon avatar
    5 posts
    Member since:
    Jul 2010

    Posted 25 Oct 2013 Link to this post

    I'm currently using a unpinned pane that has a context menu.  When you hover over the header, the pane shows up.  Then right click on the grid view row so the context menu pops up. The pane goes away.  Is there a way to keep it open while the context menu is open?

    Here's the XAML:

    <Window x:Class="DockingTest.MainWindow"
            Title="MainWindow"
            Width="525"
            Height="350">
        <Window.Resources>
            <Style x:Key="ContextMenuStyle" TargetType="telerik:RadContextMenu">
                <Setter Property="FontSize" Value="11" />
            </Style>
     
            <telerik:RadContextMenu x:Key="contextMenuCode" Style="{StaticResource ContextMenuStyle}">
                <telerik:RadContextMenu.Items>
                    <!--  Visibility of menu items is controlled by RadContextMenu_Opened  -->
                    <telerik:RadMenuItem Header="View/Edit Abstracts" />
                    <telerik:RadMenuSeparatorItem />
                    <telerik:RadMenuItem Header="Set Admitting" />
                    <telerik:RadMenuItem Header="Set Principal" />
                    <telerik:RadMenuSeparatorItem />
                    <telerik:RadMenuItem Header="Move Code">
                        <telerik:RadMenuItem Header="Move Down" />
                        <telerik:RadMenuItem Header="Move Up" />
                    </telerik:RadMenuItem>
                </telerik:RadContextMenu.Items>
            </telerik:RadContextMenu>
        </Window.Resources>
     
        <telerik:RadDocking x:Name="DockingControl"
                            Grid.Row="1"
                            MaxWidth="5000"
                            MaxHeight="5000"
                            Background="Transparent"
                            BorderThickness="0"
                            telerik:AnimationManager.AnimationSelector="{x:Null}"
                            telerik:AnimationManager.IsAnimationEnabled="False"
                            telerik:RadContextMenu.ContextMenu="{StaticResource contextMenuCode}">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup x:Name="PaneGroup" telerik:RadDocking.SerializationTag="PaneGroup">
                        <telerik:RadPane CanFloat="False"
                                         CanUserClose="False"
                                         ContextMenuTemplate="{x:Null}"
                                         Header="Document" />
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
     
            <telerik:RadSplitContainer InitialPosition="DockedLeft" Orientation="Horizontal" telerik:DockingPanel.InitialSize="200,10">
                <telerik:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical" telerik:DockingPanel.InitialSize="200,10">
                    <telerik:RadPaneGroup>
                        <telerik:RadPane CanDockInDocumentHost="False"
                                         CanFloat="True"
                                         CanUserClose="False"
                                         CanUserPin="True"
                                         ContextMenuTemplate="{x:Null}"
                                         Header="Test"
                                         IsPinned="False">
                            <telerik:RadGridView x:Name="Grid">
                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Temp1}" Header="Temp1" />
                                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Temp2}" Header="Temp2" />
                                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Temp3}" Header="Temp3" />
                                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Temp4}" Header="Temp4" />
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </Window>
  2. Vladi
    Admin
    Vladi avatar
    749 posts

    Posted 30 Oct 2013 Link to this post

    Hi,

    We are aware of this issue and it is logged in our Public Issue Tracker System.

    You can track the issue's status at following link: http://www.telerik.com/support/pits.aspx#/details/Issue=15770

    Regards,
    Vladi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. Eugenio
    Eugenio  avatar
    2 posts
    Member since:
    Nov 2013

    Posted 06 Feb 2014 in reply to Vladi Link to this post

    Any news about this issue ? I'm trying to follow the link but its wrong.

    Thanks
  4. Vladi
    Admin
    Vladi avatar
    749 posts

    Posted 07 Feb 2014 Link to this post

    Hello,

    Unfortunately the issue turned to be more complicated than previously expected and is still not resolved.

    The issue is related to some limitations that come from the default WPF Popup control and we are still researching the possible solutions to it. We will do our best to have a fix for this issue as soon as possible. We apologize for any inconvenience that this may be causing.

    Regards,
    Vladi
    Telerik

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

  5. Bret
    Bret avatar
    1 posts
    Member since:
    Apr 2017

    Posted 27 Apr Link to this post

    Any updates on this issue?  We are seeing this as well.
  6. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    391 posts

    Posted 02 May Link to this post

    Hi Bret,

    Would it be possible to share more information on your exact scenario as the thread is quite an old one and we have worked on fixing the behavior in different scenarios? Please have a look at the following item from our Ideas & Feedback portal - Showing ContextMenu inside of unpinned Pane closes it immediately when the element inside the Pane could not be focused. If your case is similar, you can try the workaround suggested by my colleague in the comments section.

    Regards,
    Stefan Nenchev
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top