how to unfocus all fields on dataform when clicking on any other control

hi,

I have a DataForm inside a SfPopup control.

When fill up all the form-fields and I want to click the save-button of the popup-control the last field of the dataform has still the focus and its value is not set to the bound data-object.

My question:

How can I make sure (with mvvm) that all fields get unfocused when I click anywhere else (save/cancel-button, blank areas...) 

in this example i click on the "speichern"-btn and the focus is still on the last field (25)

Image_3607_1719087226688

best Regards

Tobias


1 Reply

VM Vidyalakshmi Mani Syncfusion Team June 26, 2024 12:42 PM UTC

Hi Tobias,


Thank you for reaching out to us. To assist you effectively, could you please provide us with the following details?


1. Type of Editor: Could you specify the type of editor used for the last field where the focus is retained?


2. Button Click Event: Could you describe what actions are being performed in the click event of the save button?

  

3. Code Snippet:
It would be helpful if you could share a code snippet of how the DataForm is configured and bound in your sample.


This information will aid us in understanding the issue better and provide you with an appropriate solution. Meanwhile, we are also investigating the issue with the popup control team and will keep you informed of any developments.


Regards,

Vidyalakshmi M.



Loader.
Up arrow icon