This question is locked. New answers and comments are not allowed.
I am trying to place a grid with a template column within a tab on a tab strip, but am running into problems because of the 2 level limitation. Here is the block of code for the tab item:
tabstrip.Add()
.Text("Documents")
.Content(@<text>
@{Html.Telerik().Grid<ProVisionClaims.Models.DOCUMENT>()
.BindTo((IEnumerable<ProVisionClaims.Models.DOCUMENT>)ViewData["Documents"])
.Name("Documents")
.Columns(columns =>
{
columns.Bound(c => c.ID).Title("DOC ID").Width(70);
columns.Template(c =>
{
@<text>
<a href="@Url.Action("OpenDocument", new { id = c.ID, claim = c.ClaimID })">@c.DESC</a>
</text>
});
columns.Bound(c => c.DESC).Title("Description").Width(100);
columns.Bound(c => c.DOCCAT).Title("Category").Width(100);
columns.Bound(c => c.DOCTYPE).Title("Type").Width(100);
columns.Bound(c => c.CREATEDATE).Title("Created").Width(100);
})
.Pageable()
.Sortable()
.Filterable()
.Render();
}
</text>);
Specifically, the nested <text></text> tags are not permitted. I have reviewed the doc page for replacing the inner grid with a helper, but am confused regarding the syntax. Any help would be greatly appreciated.
Thanks,
Gene
tabstrip.Add()
.Text("Documents")
.Content(@<text>
@{Html.Telerik().Grid<ProVisionClaims.Models.DOCUMENT>()
.BindTo((IEnumerable<ProVisionClaims.Models.DOCUMENT>)ViewData["Documents"])
.Name("Documents")
.Columns(columns =>
{
columns.Bound(c => c.ID).Title("DOC ID").Width(70);
columns.Template(c =>
{
@<text>
<a href="@Url.Action("OpenDocument", new { id = c.ID, claim = c.ClaimID })">@c.DESC</a>
</text>
});
columns.Bound(c => c.DESC).Title("Description").Width(100);
columns.Bound(c => c.DOCCAT).Title("Category").Width(100);
columns.Bound(c => c.DOCTYPE).Title("Type").Width(100);
columns.Bound(c => c.CREATEDATE).Title("Created").Width(100);
})
.Pageable()
.Sortable()
.Filterable()
.Render();
}
</text>);
Specifically, the nested <text></text> tags are not permitted. I have reviewed the doc page for replacing the inner grid with a helper, but am confused regarding the syntax. Any help would be greatly appreciated.
Thanks,
Gene