0
私は、剣道タブストリップの2つの別々のタブに2つの剣道UIグリッドを表示しようとしています。選択されたオプションがtrueのタブ内にあるグリッドのみが表示されます。ここに私のコードです:剣道グリッドをタブストリップの別の剣道タブに表示するにはどうすればよいですか?
@(Html.Kendo().TabStrip()
.Name("tabstrip")
.Items(items =>
{
items.Add().Text("Tickets")
.Selected(true)
.Content(
@<text>@(Html.Kendo().Grid((IEnumerable<Bugger.Models.Ticket>)ViewBag.Tickets)
.Name("grid2")
.Columns(columns =>
{
columns.Bound(tickets => tickets.TicketID);
columns.Bound(tickets => tickets.Description);
})
.Pageable()
.Sortable()
)
</text>
);
items.Add().Text("Technicians")
.Content(@<text>@(Html.Kendo().Grid((IEnumerable<Bugger.Models.Technician>) ViewBag.Technicians)
.Name("grid1")
.Columns(columns =>
{
columns.Bound(technician => technician.UserID);
columns.Bound(technician => technician.FirstName);
})
.Pageable()
.Sortable()
)</text>);
}))
私は個人的には別々のビューを好むので、長期的には簡単に維持することができます。 – Win