Hello,
I have the following problem with the XamNumericEditor, XamMaskedEditor and possibly other editors aswell.
I have a usercontrol with a grid, expander , and a few other layers before i have a XamNumericEditor. On the usercontrols a keybinding for F2 is specified for search. If I run the application F2 works when a textbox is focussed (cursor in the textbox) but it doesn't work for the XamNumericEditor.
If I replace the XamNumericEditor by a textbox the problem is solved. However I would prefer not to do this as I use the XamNumericEditor's mask property for input validation.
What could be the issue here and how can I solve this?
Kind Regards
Thank you for your post. I have been looking into it, but it seems like that I am missing something in your scenario, so if this is still an issue for you, could you please send an isolated sample project, where the issue is reproduced, so I can investigate it further for you.
Looking forward for your reply.
I've included a sample that shows my issue.
Pressing the F2 key when in the textbox field executes the searchcommand. If i do the same in the XamNumericEditor field it isn't executed.
After working on this and doing some research, it turns out that the F2 is handled by the Infragistics Editors and is used for entering and exiting edit mode. This is why it doesn't executes your command when the XamNumericEditor is focused. You can suggest new product idea (for adding property which controls the F2 behavior) for future versions (or vote for existing ones) at http://ideas.infragistics.com.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Hi. I feel I have almost the same problem:
I have a XamNumericEditor in a dialog window and while it has focus pressing Escape key clears its value instead of closing window with a dialog result set to false. Should I also derive from XamNumericEditor and handle Escape key or there is a better solution exists?
Thanks.
I have modified the sample you have sent us before, so now the built in functionality of the F2 key is disabled. Basically I derived the XamNumericEditor and overrode the KeyDown event and if the pressed Key is F2 I didn't call the base method. Please let me know if this helps you or you need further assistance on this matter.
Is there a workaround that would enable the F2 key to work?
For example overriding the KeyDown event handler in the XamNumericEditor?