0
나는 검도 탭 스트립을 사용하여 모델 컬렉션의 각 항목에 대한 탭을 표시하려고합니다.검도 tabstrip ArgumentOutOfRangeException
@if (Model.Entities.Count > 1)
{
@(Html.Kendo().TabStrip()
.Name("tabstrip")
.Items(items =>
{
for (int i = 0; i < Model.Entities.Count; i++)
{
items.Add()
.Text(Model.Entities[i].Name)
.Selected(i == 0)
.Content(@<div>
@Model.Entities[i].Name //causes exception
</div>
);
}
})
)
}
탭 콘텐츠의 마크 업 (@ Model.Entities [i] .Name)은 예외를 발생시킵니다.
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
내가 잘못하고있는 일이나 올바르게 구현하는 방법을 아는 사람이 있습니까?
가 작동 감사합니다 – AGuyCalledGerald