Hi
Devex wpf controls expose a validate event as shown below:
private void dxTextEdit_Validate(object sender, DevExpress.Xpf.Editors.ValidationEventArgs e) {
if (e.Value == null) return;
if (e.Value.ToString().Length > 4) return;
e.IsValid = false;
e.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information;
e.ErrorContent = "User ID is less than five symbols. Please correct.";
}
This can be used for custom validation ... good for custom validation on the front end.
But these controls are not picking up the validation logic coded in llblgen validator class! It works fine in windows forms but not in wpf.
Can anybody share a piece of code how the validation can be performed using validator class and the dxTextEdit_Validate event shown above?
Regards