Again validation...

1 posts, 0 answers
  1. Vit100
    Vit100 avatar
    66 posts
    Member since:
    Oct 2012

    Posted 09 Nov 2011 Link to this post

    Scenario: RIA application, with RadGridView on client side.

    Server Domain Object has property with Required attribure and looks like this:

    public class Person
        public string Name {get;set;}
        public Address Age{get;set;}

    DomainContext class returns data like this:
    public List<Person> GetPersons(){
        var l = new List<Person>();
        l.add(new Person{Name="Person with Age", Address=new Address(){blah blah}};
        l.add(new Person {Name="BAD record, address is not set"});
        return l;

    1. GUI should show (aka Grid mark) all rows where initially Address is not set, so user can see which records must be updated. In this case second row should be marked, and as  result domainContext should not be called for Submit()..
    2. If user adds record into grid, it is immediately marked invalid until Address is set.

Back to Top