DataForm disable validation

1 posts, 0 answers
  1. Dmitrijs
    Dmitrijs avatar
    11 posts
    Member since:
    Jun 2012

    Posted 13 Sep 2012 Link to this post

    Hi,

    Validation in case of heritance:

      public class Lookup : ValidationBase
        {
            [Required(ErrorMessage = "Das Feld 'Name' muss gefüllt sein.")]
            public string Name
            {
                get { return this._name; }
                set
                {
                    this._name = value;
                }
            }
     
    public class Child : Lookup
        {
         ...
          }

    I want to disable Validation of child object in Dataform:
    - Only Property Name
    - All Properties

    is it posible to disable Validation? why there is no ValidatesOnDataErrors="None" property like by gridview?

    is it also posible to disable validation on DataField?

    Thanks!
Back to Top