0
에 검도 MVC 탭 표시 줄의 인라인 템플릿을 이동하는 방법 내가 현재 가지고 인라인 템플릿 다음 검도 탭 스트림 :부분
@(Html.Kendo()
.TabStrip()
.BindTo(Model.Sections, (tabStripItem, tab) =>
{
tabStripItem.Text = tab.SectionName;
tabStripItem.Template.InlineTemplate = @<text>
<div>
<p>
@Html.DisplayFor(m => tab.SectionName)
</p>
<p>Questions</p>
<ul>
@foreach (var answer in tab.InterviewReportAnswers)
{
<li>
@Html.DisplayFor(m => answer.Question) : @Html.DisplayFor(m => answer.Answer)
</li>
}
</ul>
</div>
</text>;
}))
위 그러나, 나는 템플릿이 때문에 더 복잡 얻을 것이다 직시, 잘 작동 인라인 템플릿을 외부 부분 파일로 옮기는 방법이 있습니까?
또 다른 옵션은'.LoadContentFrom이다 '("ActionThatReturnsPartial", "컨트롤러", {식 Model.Id} 신규) - 다음 서버 측 물건을하고 일부를 반환 할 수 있습니다. –
바인딩 또는'TabStrip' 컨트롤 내에서'LoadContentFrom'가'tabStripItem'에서 호출 될까요? – Esen