1º How the @Html.EditorForModel(Model.ElementAt(i)) really works, if "model.count()" is 5. Why do I get a dimension of "5*5" elements?
@model List<model>
@for (int i = 0; i < Model.Count();i++ )
{
@Html.EditorForModel(Model.ElementAt(i))
}
The only attempt that actually gave me 5 elements is:
@model List<model>
@Html.EditorForModel(Model)
2ª In the template for model I am using Javascript to change a value of the model.Numbers, using a "GetElementById("NumbersX")":
@Html.TextBoxFor(m => m.Numbers, new { id = "NumbersX" })
Does anyone know a better way of implementing, or an already implemented function, to perform this task ?