Tab event not setting the underlying property when bound in MVVM

In my WPF project, I have in XAML bound an object to the SelectedItem in a SfTextBoxExt control to a capture the selected object which was chosen (not just text, this is bound to an object).

The object gets bound correctly when I type into the control and select an item from the list using the mouse, but not when I type in tab to accept the suggested item - the set on the underlying property does not get called.

I need to be able to bind the object either by choosing via the mouse or by tabbing. Any ideas what I need to do to get the binding to work via the tab event?


Many thanks!

(The AutoCompleteMode is SuggestAppend)

6 Replies

SS Suganya Sethuraman Syncfusion Team April 1, 2021 07:44 AM UTC

Hi James,

Greetings from Syncfusion.

We have analyzed your requirement. We have prepared the sample based on your requirement using MVVM.
 
Please have the sample for your reference,

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/AutoCompleteSelectedItem1905145929

Please check if the sample satisfies your requirement and let us know if you have any concerns.

Regards,
Suganya Sethuraman.
  



JA James April 1, 2021 12:27 PM UTC

I think this demonstrates that the binding doesn't work when tabbing!


When I type in "ja" it looks as below:



Then I tab away from it...



James is populated, but the binding "set" is not called. It is when I click on James with the mouse, but not when I select by tabbing away.


Kind regards,

James



KG Kanimozhi Gunasekaran Syncfusion Team April 2, 2021 04:16 PM UTC

Hi James, 
We are currently validating on the reported issue and we will update the complete details on or before April 7, 2021.

We appreciate your patience until then.

Regards,
Kanimozhi G.  
 



AS Anandraj Selvam Syncfusion Team April 7, 2021 12:15 PM UTC

Hi James,  
  
We appreciate your patience. 
  
We have fixed the reported issue “Tab event not setting the underlying property when bound in MVVM”. Please find the assembly from below.  
  
Patch Version: 19.1.0.54, Please note that we have created this patch for the version v19.1.0.54 specifically to resolve the issue reported in this incident.   
  
  
  
  
Follow the below link to clear cache,    
  
Fix for the reported issue will be included in our next weekly NuGet which is expected to be rolled out on April 13th, 2021.  
  
We appreciate your patience until then. 
  
Regards, 
Anand Raj S. 



SS Suganya Sethuraman Syncfusion Team April 14, 2021 05:51 AM UTC

Hi James,

Sorry for the inconvenience.

Due to some technical problem, the fix was not included in today's weekly NuGet update. The fix will be included in our next weekly NuGet patch, which will be available on April 20, 2021. Until then, we value your patience.

Regards,
Suganya Sethuraman.
 



SS Suganya Sethuraman Syncfusion Team April 20, 2021 12:37 PM UTC

Hi James,

Thanks for your patience.

We have included the fix in our latest Weekly NuGet release v19.1.0.57 which is available for download (https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.

Regards,
Suganya Sethuraman.
 


Loader.
Up arrow icon