Может ли пользовательский EditorTemplate вызывать по умолчанию EditorTemplate для той же модели внутри него? То же самое относится и к DisplayTemplates. Вот упрощенный пример. Пока отображается LabelForModel, ни DisplayForModel, ни EditorForModel не отображаются.
View
<div class="highlight1">
@Html.DisplayFor(m => m.NullableProp, "NullableIntType1View")
</div>
<div class="highlight2">
@Html.EditorFor(m => m.NullableProp, "NullableIntType1View")
</div>
<div class="highlight1">
@Html.DisplayFor(m => m.NullableProp, "NullableIntType2View")
</div>
<div class="highlight2">
@Html.EditorFor(m => m.NullableProp, "NullableIntType2View")
</div>
Shared / DisplayTemplates / NullableIntType1.cshtml
@model System.Int32?
This is display for NullableIntType1
<hr /> --> @Html.EditorForModel() <--
<hr /> --> @Html.DisplayForModel() <--
<hr /> --> @Html.LabelForModel() <--
Общий / EditorTemplates / NullableIntType1.cshtml
@model System.Int32?
This is editor for NullableIntType1
<hr /> --> @Html.EditorForModel() <--
<hr /> --> @Html.DisplayForModel() <--
<hr /> --> @Html.LabelForModel() <--
Shared / DisplayTemplates / NullableIntType2.cshtml
@model System.Int32?
This is display for NullableIntType2
<hr /> --> @Html.EditorForModel() <--
<hr /> --> @Html.DisplayForModel() <--
<hr /> --> @Html.LabelForModel() <--
Общий / EditorTemplates / NullableIntType2.cshtml
@model System.Int32?
This is editor for NullableIntType2
<hr /> --> @Html.EditorForModel() <--
<hr /> --> @Html.DisplayForModel() <--
<hr /> --> @Html.LabelForModel() <--