Hide RadPane Context Menu - Q1 '10

14 posts, 0 answers
  1. Chris
    Chris avatar
    17 posts
    Member since:
    Nov 2009

    Posted 11 Mar 2010 Link to this post

    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
  2. Thomas
    Thomas avatar
    58 posts
    Member since:
    Jun 2009

    Posted 12 Mar 2010 Link to this post

    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.



  3. UI for WPF is Visual Studio 2017 Ready
  4. Chris
    Chris avatar
    17 posts
    Member since:
    Nov 2009

    Posted 12 Mar 2010 Link to this post

    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.
  5. Bijan Nazem
    Bijan Nazem avatar
    3 posts
    Member since:
    Jan 2010

    Posted 15 Mar 2010 Link to this post

    You can add a data template like this to the RadPane:

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

    Bijan
  6. Chris
    Chris avatar
    17 posts
    Member since:
    Nov 2009

    Posted 15 Mar 2010 Link to this post

    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
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 16 Mar 2010 Link to this post

    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.
  8. Antonio
    Antonio avatar
    6 posts
    Member since:
    Jun 2012

    Posted 30 Mar 2010 Link to this post

    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
  9. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 31 Mar 2010 Link to this post

    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.
  10. Chris
    Chris avatar
    17 posts
    Member since:
    Nov 2009

    Posted 31 Mar 2010 Link to this post

    Hi Konstantina

    Works a treat - thanks very much!

    Chris
  11. RoxanaC
    RoxanaC avatar
    71 posts
    Member since:
    Dec 2009

    Posted 07 Apr 2010 Link to this post

    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
  12. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 12 Apr 2010 Link to this post

    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.
  13. ss
    ss avatar
    37 posts
    Member since:
    Nov 2010

    Posted 27 Mar 2012 Link to this post

    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.

  14. ss
    ss avatar
    37 posts
    Member since:
    Nov 2010

    Posted 27 Mar 2012 Link to this post

    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.

  15. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 30 Mar 2012 Link to this post

    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 >>
Back to Top
UI for WPF is Visual Studio 2017 Ready