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

Is it supported to add ContextMenu on a RadContextMenu?

1 Answer 56 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
Yaron
Top achievements
Rank 1
Yaron asked on 09 Mar 2018, 09:41 AM
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. 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 13 Mar 2018, 04:52 PM
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.
Tags
ContextMenu
Asked by
Yaron
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or