EditForm does not know Kanban's Submit Button is triggered

In the Kanban editor dialog like this link, I can properly get the data of the updated/created cards through the AddedRecords/ChangedRecords in onactioncomplete's ActionEventArgs. The problem is to validate the data input. If I am not wrong, I should use the EditForm tag for that purpose, and I have to add the code below to a class property:
[RegularExpression(@"^[a-zA-Z0-9 ]+$", ErrorMessage = "Special characters are not accepted.")]
I tried that but nothing occurred even I typed banned characters, I suspect the problem is the form does not know I clicked the default kanban editor dialog submit button, because the inline code "OnValidSubmit='@submit'" does not link to the submit button.

1 Reply 1 reply marked as answer

DV Dinesh Vinayagam Syncfusion Team May 28, 2026 01:12 PM UTC

Hi Desmond,

As per your request, we have achieved the data annotation validation within the Kanban dialog by configuring the EditForm with DataAnnotationsValidator and handling the validation through the DialogClose event of the Kanban. During the dialog close, the data model is validated programmatically, and if any validation errors are found, the dialog close action is prevented so that invalid data is not saved, the dialog remains open for correction, and the corresponding validation messages are displayed. Please refer to the below sample link for your reference.

Syncfusion Blazor Playground: Write,Edit,Compile, Share Code


Regards,

Dinesh



Marked as answer
Loader.
Up arrow icon