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

Unpinned Pane and Context Menu

6 Answers 129 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 25 Oct 2013, 12:41 PM
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>

6 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 30 Oct 2013, 08:26 AM
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 >>
1
Eugenio
Top achievements
Rank 1
answered on 06 Feb 2014, 05:28 PM
Any news about this issue ? I'm trying to follow the link but its wrong.

Thanks
0
Vladi
Telerik team
answered on 07 Feb 2014, 01:08 PM
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).

0
Bret
Top achievements
Rank 1
answered on 27 Apr 2017, 05:33 PM
Any updates on this issue?  We are seeing this as well.
0
Stefan Nenchev
Telerik team
answered on 02 May 2017, 10:39 AM
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 you to write beautiful native mobile apps using a single shared C# codebase.
0
Cemil
Top achievements
Rank 1
Iron
answered on 08 Jun 2022, 08:14 AM

Any Update on the issue? I have a same problem.

I have a radpane include a context menu. when right click over context menu, Radpane is closing and it'is problem for this component.
I used contextmenuopening event but it works before closing and it is not good idea

code is below:

 


 <telerik:RadPaneGroup  Margin="0,0,0,0" >
                    <telerik:RadPane  Name="PaneProcess" CanUserClose="False" >
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="24" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <telerik:RadWatermarkTextBox x:Name="FilterTree" Grid.Column="0" Grid.Row="0" BorderThickness="1"
					 Margin="0,0,0,0"
					 VerticalAlignment="Top" 
					 MinHeight="24" />
                            <c:TreeViewProcess x:Name="treeViewProcess" IsDragDropEnabled="True" Grid.Row="1" />
                        </Grid>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>

 

 

 

Tags
Docking
Asked by
Jon
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Eugenio
Top achievements
Rank 1
Bret
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Cemil
Top achievements
Rank 1
Iron
Share this question
or