Hi Frangoudes,
Thanks for using Syncfusion products.
We have analyzed your requirement and we would like to inform you that by default data validation available in SfTextBox itself. Please find the code snippet for this.
Code snippet
protected override IEnumerable<DataValidationError> GetPropertyErrors( string propertyName, object value) { var result = new List<DataValidationError>();
switch (propertyName) { case nameof(TextField1): //Place your validation here break; }
return result; }
|
We have prepared a sample for using the IEnumerable <DatavalidationError>.In this we can perform error validation by using the following codes
In this sample we have perform error validation for two SfTextBox, one for validate entry size and another one for check text is “foo”.
Please let us know if you have any queries.
Regards,
Muneesh Kumar G.