This is a migrated thread and some comments may be shown as answers.

DataForm disable validation

0 Answers 37 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Dmitrijs
Top achievements
Rank 1
Dmitrijs asked on 13 Sep 2012, 11:03 AM
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!

No answers yet. Maybe you can help?

Tags
DataForm
Asked by
Dmitrijs
Top achievements
Rank 1
Share this question
or