Hey,
I have a grid that has a clientdetailtemplate. In that template, i use another grid, that would call the same template again untill maybe 3 levels down.
Is that possible? I get invalid client template, but thats maybe it is just not possible by design. When i add .toclienttemplate on the grid, it does not give an error, but nothing seems to happen.
I have a grid that has a clientdetailtemplate. In that template, i use another grid, that would call the same template again untill maybe 3 levels down.
Is that possible? I get invalid client template, but thats maybe it is just not possible by design. When i add .toclienttemplate on the grid, it does not give an error, but nothing seems to happen.
<div id="dvResults" class="searchResults col-md-6 col-md-offset-3"> <div id="resultGrid"> @(Html.Kendo().Grid(Model.SearchDetails) .Name("grdSearch$Results") .HtmlAttributes(new { @class = "grdSearchResults" }) .Columns(column => { column.Bound(x => x.Icon).Template(@<text><img src="@item.Icon" class="searchicon" /></text>).Width(16); column.Bound(x => x.Name).Template( @<text><a onclick="SelectEntity('@item.CustomerId','@item.PremisesId','@item.InvoiceStructureId')">@item.Name</a> @if (@item.IsCustomerLevel) { <br /><text>@item.SearchCriteria : @item.Field</text> }</text>).Title(""); }) .ClientDetailTemplateId("gridDetailTemplate") ) </div></div><script id="gridDetailTemplate" type="text/kendo-tmpl"> @(Html.Kendo().Grid<SearchDetailModel>("#=Children#") .Name("GrdSearchDetails_#=Id#") .HtmlAttributes(new { @class = "grdSearchResults" }) .Columns(column => { column.Bound(x => x.Icon); }).ClientDetailTemplateId("gridDetailTemplate") )</script>