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

Bind GridView selectedRow datacontext to RadialMenu

1 Answer 74 Views
RadialMenu
This is a migrated thread and some comments may be shown as answers.
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Kamran asked on 14 Jan 2021, 11:30 AM

I have added Radial menu as RadialContextMenu in RadGridView.

I want to get the selectedRow DataContext on item click. 

I tried to set RadRadialMenu.DataContext as Gridview Selected Item, but as ItemClick datacontext is null. Default datacontext of Radial menu is UserControl's DataContext. which need to be replaced with GridView Selected Row.

 

I have one option to Bind DataContex of individual RadRadialMenuItem with GridView selectedItem, but It seems not proper way.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 19 Jan 2021, 10:00 AM

Hi Kamran,

Thank you for your interest in our RadRadialMenu control.

To avoid any misunderstanding, may I ask you to share more details about your set-up. 

  • The menu will be open only on row click, or are you targeting the whole grid?
  • In which event you want to get the row? In the Opened event of the menu or on RadMenuItem, selection changed.
  • Can you share the XAML code how you have attached the menu to the grid?

I am looking forward to your reply.

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products, quickly just got a fresh new look + new and improved content, including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
RadialMenu
Asked by
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or