How can I add field validation to EditMode.Dialog

I am using SyncFusion Blazor v18.0.2.57

I have a grid with EditMode.Dialog and I want to add validation to the fields in that edit dialog. 

I assume I need to add code to the OnActionBegin handler of the Grid and if the args.RequestType is equal to Action.BeginEdit or Action.Add, then perform validation there, but I can't see how I can reference the individual fields in the dialog. 

Can you provide an example?



1 Reply 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team September 15, 2020 11:01 AM UTC

Hi David, 

Greetings from Syncfusion support. 

We would like to inform you that we have support for ColumnValidation in Grid Editing. Please refer the below documentation for more details, 

We have used the column validation in our Dialog editing online demo and UG documentations. Please refer the links below, 

And also we would like to inform that we have DataAnnotation validation support for Grid. So now you can use either our default ColumnValidation(as explained above) or you can use DataAnnotation validation as discussed in below documentation to achieve validation in Grid Dialog Editing, 

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 


Marked as answer
Loader.
Up arrow icon