I am prototyping a Blazor Server application that communicates with a legacy Web API (Lightswitch). I have written a Custom DataAdaptor that is able to capture the validation results/errors but now I need to pass the validation results/errors back to the Grid editor.
The problem is, the Data Manager does not know anything about the EditContext that was created by the Grid to for the form so there is no way to communicate the server generated validation results back to the editor.
Am I missing something? Is there a way to communicate Validation Results from a Data Adaptor to the Grid?
Many Thanks,
Ian
Hi Ian,
Greetings from Syncfusion support.
We have documented a similar topic regarding this scenario in the below documentation. Kindly refer the below documentation and use the event to achieve this requirement.
https://blazor.syncfusion.com/documentation/datagrid/data-binding#handling-http-error
https://blazor.syncfusion.com/documentation/datagrid/data-binding#handling-exceptions
Please get back to us if you need further assistance.
Regards,
Renjith R
Thanks for the response. I have spent days looking through your documentation and forum for a solution. Your solutions don't work because:
Hi Ian,
We have analyzed your query and we have discussed the similar scenario in the below thread. Kindly refer the below forum link for more details on achieving this requirement.
Please get back to us if you need further assistance.
Regards,
Renjith R
The last thread does not solve my problem as the validations are taking place DURING an insert or update operation.
The architecture of the grid + data adaptor does not allow the propagation of validation results during an insert or update back to the form editor (dialog or normal). This is a real deficiency of your product as this is a common scenerio IMHO.
If I want to use your product, then I have no choice but to move all add/edit operations into my own editing infrastructure to accomplish this requirement.
Thanks for your help,
Ian
Hi Ian,
We have analyzed your query, we could see that you have found an alternative way to overcome the reported scenario. If so, then we are glad to hear that you have achieved your requirement.
If you are still facing difficulties or if you need further assistance, then the following details would be helpful for us to further analyze your scenario and provide you a suggestion. Kindly share with us the following details to proceed further.
Regards,
Renjith R