Enter Key is not setting the underlying property when bound in MVVM
Hi,
please refer following post
Tab event not setting the underlying pro... | WPF Forums | Syncfusion®
I'm facing the same problem, but the difference is, in my project Enter Key sets focus to next control or executes Save Command as the case may be
But SfTextBoxExt does not update SelectedItem when user presses Enter Key.
Can you please Help me with this.
Amit Saraf
Hi Amit Saraf,
Thank you for reaching out to us. We have investigated the reported query. But unfortunately we are unable to reproduce the reported query. We’ve attached the sample for your reference. Please review our sample and kindly modify the sample to replicate the reported query or please share your sample were you face this issue. This will help us to investigate the issue more effectively and guide you to resolve this at your end.
Regards,
Hemalatha K
Attachment: Autocomplete_Sample_b6bf54e9.zip
Thanks for your reply
I've modified your sample for easy understanding.
Also attached a short video
when you enter few characters and press enter no item is selected on the other hand if you press tab key 1st matched item is selected.
I want the same behavior as that of tab key with enter key.
Thanks for your help
Amit Saraf
Attachment: WpfSample_6d47ec36.zip
Hi Amit Saraf,
Thank you for sharing the details. We have reviewed your scenario and understand the exact issue. The behavior occurs because pressing the Enter key does not automatically select the first suggestion, unlike the Tab key.
To resolve this, the recommended workaround is to handle the Enter key event so that the first matching item from the suggestion list is selected and the suggestion popup is closed immediately after selection. This approach ensures that the user experience remains consistent with the Tab key behavior and provides a smooth interaction when choosing items.
For your reference, we have attached a sample project that demonstrates this solution.
Regards,
Hemalatha
Attachment: WpfSample_9f47ac0e.zip
Thanks a lot
It worked as expected.
Amit Saraf
Hi Amit Saraf,
You are welcome.
We are glad to know that the reported problem
has been resolved. Please let us know if
you require any further assistance on this. We will be happy to assist you.
Regards,
Preethi R
- 5 Replies
- 3 Participants
- Marked answer
-
AS Amit Saraf
- Dec 9, 2025 01:16 PM UTC
- Dec 17, 2025 04:57 AM UTC