You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helpers such as Html.CheckBoxListFor currently use ExpressionHelper.GetExpressionText(expression) to generate element names. This generates an incorrect name when using the helper within nested editor templates. E.g.
Helpers such as
Html.CheckBoxListFor
currently useExpressionHelper.GetExpressionText(expression)
to generate element names. This generates an incorrect name when using the helper within nested editor templates. E.g.Index.cshtml:
@Html.EditorFor(model => model.Other)
EditorTemplates/Other.cshtml
@Html.CheckBoxListFor(model => model.Tags, Model.AvailableTags)
Should generate the field name
Other.Tags
but is actually justTags
.The solution is to use
TemplateInfo
to get the full name:The text was updated successfully, but these errors were encountered: