Is it supported to add ContextMenu on a RadContextMenu?

2 posts, 0 answers
  1. Yaron
    Yaron avatar
    1 posts
    Member since:
    Nov 2016

    Posted 09 Mar 2018 Link to this post

    Hello, my case is: I have a RadContextMenu, and there's a RadListBox filling the RadMenuGroupItem of the RadContextMenu.  And then I added a TextBlock in the ItemTemplate of the RadListBox. And finally, I added a ContextMenu on this TextBlock, this ContextMenu on TextBlock didn't work. Right clicking on the TextBlock which is also the an Item of the RadListBox, no ContextMenu pop up, nothing happened.  So what's the reason of it?  Is this kind of case supported?  Thanks for any comments, that would be great help for me, thanks a lot. 
  2. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 13 Mar 2018 Link to this post

    Hello Yaron,

    Having a RadContextMenu inside another RadContextMenu would not be possible. What I can suggest you is to handle the SelectionChanged event of RadListBox and open a new Window, for example, containing the needed items. Of course, clicking on a given listbox item would close the main RadContextMenu.

    Would such an approach be suitable for you?

    Regards,
    Stefan
    Progress Telerik
    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