Problems using Edit box of NumericUpDown Control in a Context Menu

1 Answer 50 Views
NumericUpDown
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
Joe asked on 08 Aug 2023, 05:52 PM
I have a RadContextMenu (for an object on a canvas).  It works well. 
I added a NumericUpDown Control to it. 
When I open the menu, If I click the + or - button on the control first, it works fine.   
But if I click directly in the edit box of the control just after opening the menu, then the menu immediately closes.

If I open the menu, first click either the + or - and THEN click inside the edit control, then the menu stays open.

Is there a setting I can change to prevent the menu from immediately closing?

I have attached a small sample that illustrates the issue.  Run the app, right click on the shape and then immediately left click on the text-box portion of the Numeric Up Down.  The Menu will close.  But click on the +/- buttons first and it works.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 11 Aug 2023, 03:23 PM

Hello Joe,

To avoid this behavior, you can set the StaysOpenOnClick property of RadMenuItem to True.

<tk:RadContextMenu x:Key="RectCtxMenu">
	<tk:RadMenuItem StaysOpenOnClick="True" Style="{StaticResource RotationAngleItemStyle}"/>
</tk:RadContextMenu>

As a side note, I have noticed that you have never used your Technical Support option and always use the public forums to ask for help. The forums are a great resource when a topic is something that will benefit the overall community, not specific to your business logic's implementation, and you do not mind waiting several extra days for an answer. Another thing to keep in mind about the forums is that there is no guarantee that you will get an answer from a Telerik engineer, compared to the Support Tickets where you get guaranteed 24h (Priority Support) or 72h (Lite Support) response time.

So, my tip for you is in the future, in case you have important questions, and you would like to definitely get an answer from the Telerik support stuff, please open a Support Ticket instead. This way you will take advantage of the corresponding response time.
 

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
NumericUpDown
Asked by
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Martin Ivanov
Telerik team
Share this question
or