Hello,
In my metadata.cs file I use a CustomValidation like this :
...
[CustomValidation(typeof(MesValidations), "DescriptionActionPreventiveUneValeur")]
public string DescriptionActionPreventive_en { get; set; }
...
But when my ErrorMessage is displayed, it's in tooltip not within a red rectangle (see attachement).
MesValidations.shared.cs :
public static System.ComponentModel.DataAnnotations.ValidationResult DescriptionActionPreventiveUneValeur(Object DescriptionActionPreventive, ValidationContext context)
{
if (((String)DescriptionActionPreventive) == "oui")
{
return System.ComponentModel.DataAnnotations.ValidationResult.Success;
}
else
{
return new System.ComponentModel.DataAnnotations.ValidationResult("I'm not in the red rectangle error message!");
}
}
I want know if it's related with my code or someting wrong with my RadGridView.
Thank you
In my metadata.cs file I use a CustomValidation like this :
...
[CustomValidation(typeof(MesValidations), "DescriptionActionPreventiveUneValeur")]
public string DescriptionActionPreventive_en { get; set; }
...
But when my ErrorMessage is displayed, it's in tooltip not within a red rectangle (see attachement).
MesValidations.shared.cs :
public static System.ComponentModel.DataAnnotations.ValidationResult DescriptionActionPreventiveUneValeur(Object DescriptionActionPreventive, ValidationContext context)
{
if (((String)DescriptionActionPreventive) == "oui")
{
return System.ComponentModel.DataAnnotations.ValidationResult.Success;
}
else
{
return new System.ComponentModel.DataAnnotations.ValidationResult("I'm not in the red rectangle error message!");
}
}
I want know if it's related with my code or someting wrong with my RadGridView.
Thank you