or
01.
@(Html.Kendo().TabStrip() _
02.
.Name("tabstrip") _
03.
.Items(Sub(tabstrip)
04.
tabstrip.Add().Text("Delivery Tickets") _
05.
.Selected(True) _
06.
.Content(Sub()
07.
Html.Kendo().Grid(Of DeliveryTicketDisplay) _
08.
.Name("Grid") _
09.
.Columns(Sub(c)
10.
c.Bound(Function(x) x.DeliveryTicketID)
11.
c.Bound(Function(x) x.TicketDate)
12.
c.Bound(Function(x) x.CustomerID)
13.
c.Bound(Function(x) x.Location)
14.
End Sub) _
15.
.DataSource(Sub(dataSource)
16.
dataSource _
17.
.Ajax() _
18.
.Read(Function(reader) reader.Action("List", "DeliveryTicket", New With {.CustomerID = Model.CustomerID}))
19.
End Sub)
20.
End Sub)
21.
22.
tabstrip.Add().Text("Contacts") _
23.
.LoadContentFrom("List", "Contact", New With {.CustomerID = Model.CustomerID})
24.
End Sub)
25.
)
.ToolBar(commands => commands.Custom().HtmlAttributes(new { id = "SendEmailStatements" })
.HtmlAttributes(new { @CLASS = "sendBtn" })
.Text("Send")
.Action("SendBuyerEmailStatements", "Home", new { DayendCycle = SelectedDayendCycle})
)
.Read(read => read.Action("BuyerEmailStatementsGrid_Read", "Home").Data("SelectedDayendCycle")