The Required Validation no longer works correctly after a refresh on the SFDataForm

The Required Validation no longer works correctly after a refresh has been performed on the SFDataForm. The validation in the backend still works, but the Required Text only appears if a text is written into the field beforehand and then deleted again.


3 Replies 1 reply marked as answer

UD UdhayaKumar Duraisamy Syncfusion Team August 29, 2024 05:07 AM UTC

Hello Daniel Nyfeler,


We have validated the reported scenario on our end by creating a sample in which we refreshed the Data Form using the `Refresh` method. After calling the Refresh method, the Data Form refreshed correctly, and the validation functioned as expected. We have included a sample and a video illustration for your reference.




Sample: https://blazorplayground.syncfusion.com/embed/LjhTDbhkMxuCTISb?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5


To assist you further and provide a more tailored solution, could you please share the following details:

  • The exact version of the Syncfusion package you are using. Additionally, please confirm if you are experiencing the same issue with the latest package (v26.2.11).

  • Details on how you are rendering and Refreshing  the Date Form component. Please provide a code snippet that reproduces the issue or modify the provided sample to reflect your specific scenario. This will help us understand the component's integration in your project.

  • Steps to replicate the issue.

  • A video illustration demonstrating the problem.


Best regards, 

Udhaya Kumar D.


Marked as answer

DN Daniel Nyfeler August 30, 2024 07:45 AM UTC

Hi  Udhaya Kumar

Many thanks for the feedback.

Using the EditContext instead of the Model on the SfDataForm is the solution to this problem. If the model is used directly in your example, there is the same problem with the validation.

Greets,

Daniel




UD UdhayaKumar Duraisamy Syncfusion Team September 4, 2024 07:14 AM UTC

We have identified the issue with the "Refresh" and "Submit" actions not working in the data form as a bug on our end. The fix is planned to be included in our upcoming release, which is scheduled for the end of September 2024.


You can monitor the status of this issue through the following feedback link:

https://www.syncfusion.com/feedback/60946


Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”


Loader.
Up arrow icon