or
Hello,
Let me explain my scenario for better understanding:
- my Model contains a list of products. All these products are displayed in GridView
- there is a nested detail template with TabStrip for each product
- one tab/item of this TabStrip contains all ebay auctions of this product in another GridView
ie. something like this http://demos.telerik.com/aspnet-mvc/grid/detailtemplate
My view in razor syntax:
@model List<Site.Models.Products> // main model[...]@(Html.Kendo().Grid(Model) // first grid which lists all products [...] .ClientDetailTemplateId("Details") // nested template [...]<script id="Details"> @(Html.Kendo().TabStrip() [...] .Items(items => { [...] items.Add().Text("Auctions").Content(@<text> @(Html.Kendo().Grid(new List<Site.Models.EbayAuctions>()) .Name("Auctions_for_#=strProductID#") // this variable is from Site.Models.Products .Columns(columns => { columns.Bound(p => p.strEbayID); // this variable is from Site.Models.EbayAuctions [...].Columns(columns =>{ columns.Bound(p => p.strEbayID).ClientTemplate( "<a href=\"http://www.sandbox.ebay.com/itm/\">" + "#=data.strEbayID#" + "</a>" ) <div id="buUsers" kendo-grid="buUsers" data-k-options="kendoGridOptionsBuUsers"></div> $scope.buUsers.select("tr:eq(" + (index + 1) + ")")