We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Validation Handling when using custom edit dialog


I have a SfGrid with EditMode set to Dialog.

I also have a custom template in GridEditSettings.

Is there a way to have validation in the popup dialog that appears?

Thanks for the support in advance.

1 Reply

PS Prathap Senthil Syncfusion Team January 5, 2023 10:53 AM UTC

Hi Preveen,

Greetings from Syncfusion support,

Based on your requirement, we understand that if you haven't used the inbuilt validation in the grid column, So we suggest you use the DataAnnotationValidator component within the grid edit setting template. We have already discussed this topic in the UG documentation. Kindly refer to the below ug documentation link.

Documentation: https://blazor.syncfusion.com/documentation/datagrid/column-validation#display-validation-message-in-dialog-template

If the reported issue persists, please share the grid code snippet with the model class or provide us with a simple reproducible sample of the issue.

Prathap S

Live Chat Icon For mobile
Up arrow icon