User1431643137 posted
Using HtmlFieldPrefix:
@Html.Partial("_UsersPartial", Model.USERS.First(), new ViewDataDictionary {
TemplateInfo = new TemplateInfo { HtmlFieldPrefix = "anything" } })
or just using the Html.EditorFor
@Html.EditorFor(m => m.USERS)
which has an implicit HtmlFieldPrefix, make HtmlHelpers, such as TextBox and Editor, not able to get the value from the model (inside the PartialView/EditorTemplate), i.e. input field is empty.
Html.TextBox("propertyA")
produces an empty input even if Model.propertyA != null
TextBoxFor and EditorFor are working fine.
PS. I am using this property to give the necessary prefixes to my input fields when using partials to displat a nested property.