Datavalidation

Hi,
can anyone explain how the Datavalidation concrete works?
My ViewModel implements IDataValidation.

In the Property public string this[string columnname]{} i do my Validation. 
If i give a empty string back then it is validated as correct, else as false.

But for what is the public string Error {} property ???

Best regards

Brian Dahl

2 Replies

SS Sridevi Sivakumar Syncfusion Team March 19, 2018 10:44 AM UTC

Hi Brian Dahl,
we are currently analyzing the details regarding the Error API in data Validation and we will update you with the details on or before 21 March 2018. Please let us know if you have any concern. 
Regards,
Sridevi S
  



SS Sridevi Sivakumar Syncfusion Team March 22, 2018 03:56 AM UTC

Hi Brain,

Thank you for using Syncfusion products.

The IDataValidation interface in the SfTextBoxExt has two API’s Error and this[string columnname]. The “this[string columnname]“ is used to get the instance of the control added the application and the “Error” API is used to return the error msg which we can return if we need to have a common log for all the instance of the control and can use the other for having specific error logs for each instance. It is recommended to use the this[string columnname] to have the validation of the control which you have currently using.

Please let us know if you have any concern

Regards
Sridevi S


Loader.
Up arrow icon