I have list of models and want to perform remote validation.
Model:
[System.Web.Mvc.Remote("Method", "Controller", HttpMethod = "POST", AdditionalFields = "prop2,prop3", ErrorMessage = "Error")]
public string prop1 { get; set; }
The name generated by MVC for each elements are like below:
<input type='text' name='test[0].prop1' />
Because of this, values are not binding to the parameters. I took help from this Post. Now I am getting the value for 'prop1' but still 'prop2' and 'prop3' are not getting bound.
Edit: I am using BeginCollectionItem to render the list elements.
Any help or suggestion would be great.
Thanks in advance.