RadContextMenu auto close prevent on click

1 Answer 57 Views
General Discussions
Mari
Top achievements
Rank 1
Mari asked on 07 Dec 2022, 12:14 PM

I use telerik UI for WinForms project(not WPF) How to prevent auto close of RadContextMenu when user clicks on item on it? Now, after mouse click on any item, it closes. In WinForms there is ContextMenuStrip.AutoClose property to prevent autoclosing. Is there analogue of the property on Telerik RadContextMenu?

Thanks

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Dec 2022, 12:51 PM

Hello, Mari,

Note that RadContextMenu offers the DropDownClosing event which allows you to cancel closing the menu by setting the Cancel argument to true.

Thus, you can achieve the desired behavior. More information about the public API is available here: https://docs.telerik.com/devtools/winforms/controls/menus/contextmenu/properties-methods-events 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
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
General Discussions
Asked by
Mari
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or