title: Asp.net MVC client validation, no client validation with sub-items?
body: <p>I'm using asp.net mvc 3 for a project and already using the server and client validation on several pages. It works fine. But this time, I've a special case:</p>
  
  <p>Items in the view are bounds to the model and also to some of its properties. </p>
  
  <p>one example:</p>
  
  <pre><code>public class MyModelView{
     [Required]
     [StringLength(100, MinimumLength = 2)]
     public String Name{get;set;}
     public DetailsObject Details{get;set;}
  }
  public class DetailsObject{
     [Required]
     [StringLength(100, MinimumLength = 2)]
     public String PropertyOne{get;set;}
     [Required]
     [StringLength(100, MinimumLength = 2)]
     public String PropertyTwo{get;set;}
  }
  </code></pre>
  
  <p>and in the view I've "bindings on all elements</p>
  
  <pre><code>@Html.TextBoxFor(m=&gt;m.Name)
  @Html.TextBoxFor(m=&gt;m.Details.PropertyOne)
  @Html.TextBoxFor(m=&gt;m.Details.PropertyTwo)
  </code></pre>
  
  <p>The problem is that I don't get any client validations. The server validation is still working fine for all properties.</p>
  
  <p>I've the jquery validate unobtrusive included. How do you manage that?</p>