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

Hide RadPane Context Menu - Q1 '10

13 Answers 228 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 11 Mar 2010, 06:53 AM
Hi

I have just upgraded an application I am working on to Q1 '10. Love the improved theming btw

I have a RadPane which contains a RadTreeView with a HierarchicalDataTemplate. The HierarchicalDataTemplate includes a ContextMenu which was working beautifully with the Q4 '09 controls.

However, now that I have upgraded to Q1 '10 I notice that the Pane Floating/Dockable Menu - which used to only be available off the Header - is now available as a Context Menu everywhere within the Pane.

How can I disable this - either totally, or when the mouse cursor is over a RadTreeViewItem?

Many thanks in advance

13 Answers, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 12 Mar 2010, 03:15 PM
Hi,
The same problem here. None of the context menu's show up inside a pane. This is also true for the build-in context menu's, like that of the textbox.



0
Chris
Top achievements
Rank 1
answered on 12 Mar 2010, 10:12 PM
Hi again

Is there any solution to this? It is currently an absolute show stopper and may force a return to the Q4 '09 release. I don't want to do that as I like all the other changes I have come across so far and the Panes are behaving far more predictably.
0
Bijan Nazem
Top achievements
Rank 1
answered on 15 Mar 2010, 08:39 PM
You can add a data template like this to the RadPane:

                    <tk:RadPane.ContextMenuTemplate>
                        <DataTemplate>
                            <tk:RadContextMenu Visibility="Collapsed" />
                        </DataTemplate>
                    </tk:RadPane.ContextMenuTemplate>

Bijan
0
Chris
Top achievements
Rank 1
answered on 16 Mar 2010, 04:13 AM
Hi Bijan

Thanks for the response.

Unfortunately I tried the DataTemplate option and, while it does get rid of the context menu, it also gets rid of the Drop Down Menu on the Header bar - still need that!

Also, context menus defined on controls within the RadPane still do not work.

Any other thoughts?

Regards
0
Konstantina
Telerik team
answered on 16 Mar 2010, 03:21 PM
Hi Chris,

Thank you for contacting us.

We have logged this issue in our bug tracking system. We will do our best to fix it as soon as possible. Your Telerik points have been updated.
Sorry for the inconvenience that causes you.

If you have any other concerns about out controls please do not hesitate to contact us again.

Best wishes,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Antonio
Top achievements
Rank 1
answered on 30 Mar 2010, 05:00 PM
Hi Konstantina ,
the same here and it is really a big big issue for us.
Could you please post the issue id of the bug tracking system?

Thanks.
Alex
0
Konstantina
Telerik team
answered on 31 Mar 2010, 03:35 PM
Hi all,

This issue is fixed.
To manipulate the ContextMenu of the RadPanes there are 2 scenarios:
1. Having a ContextMenu only on the button in the header of the Pane;
2. Not having a ContextMenu at all.
Attached is a sample project which illustrates both scenarios.
Hope this will help you.

If you have any other questions please feel free to contact us again.

Best wishes,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Chris
Top achievements
Rank 1
answered on 01 Apr 2010, 01:33 AM
Hi Konstantina

Works a treat - thanks very much!

Chris
0
RoxanaC
Top achievements
Rank 1
answered on 07 Apr 2010, 12:40 PM
Hello Konstantina!
I don't know if it's just me but when I run your example I still can see the arrow button from the context menu, although it's true that the context menu is not showing anymore. What can I do to have it removed also?
Thank you!
Roxana
0
Konstantina
Telerik team
answered on 12 Apr 2010, 04:01 PM
Hi Roxana,

Thank you for your question.

We are aware of this issue. It will be addressed shortly after the service pack release which due to the end of the month.
Sorry if that causes you any inconvenience.

If you have any other questions please feel free to contact us again.

Sincerely yours,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
ss
Top achievements
Rank 1
answered on 27 Mar 2012, 12:04 PM
Hi teleirk,

i am using radpane and roddocking.

when i right click on radpane to tap or float to docking.the contextmenu is coming always at left side of the pane.but i need to display the context menu whr ever i right click wiht mose.so could you please help me on this.

0
ss
Top achievements
Rank 1
answered on 27 Mar 2012, 12:05 PM
Hi teleirk,

i am using radpane and roddocking.

when i right click on radpane to tap or float to docking.the contextmenu is coming always at left side of the pane.but i need to display the context menu whr ever i right click wiht mose.so could you please help me on this.

0
Konstantina
Telerik team
answered on 30 Mar 2012, 02:58 PM
Hi,

You need to remove the context menu from the RadPane by setting the ContextMenuTemplate="{x:Null}".
After that you can attach a RadContextMenu in a TextBlock in the TitleTemplate of the RadPane, for example:

<telerik:RadPane.TitleTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding}">
                                            <telerik:RadContextMenu.ContextMenu>
                                                <telerik:RadContextMenu>
                                                    <telerik:RadMenuItem Header="My Menu Item" />
                                                    <telerik:RadMenuItem Header="My Menu Item" />
                                                    <telerik:RadMenuItem Header="My Menu Item" />
                                                </telerik:RadContextMenu>
                                            </telerik:RadContextMenu.ContextMenu>
                                        </TextBlock>
                                    </DataTemplate>
                                </telerik:RadPane.TitleTemplate>

In that way the context menu will show where you click on the header.

Greetings,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Docking
Asked by
Chris
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Bijan Nazem
Top achievements
Rank 1
Konstantina
Telerik team
Antonio
Top achievements
Rank 1
RoxanaC
Top achievements
Rank 1
ss
Top achievements
Rank 1
Share this question
or