I have a grid with a details panel.
The details panel has the following template:
<script id="SuggestionGridDetailsTemplate" type="text/kendo-tmpl"> @(Html.Kendo().Splitter() .Name("sug-splitter-#=SuggestionID#") .HtmlAttributes(new { style = "height: 500px;" }) .Orientation(SplitterOrientation.Vertical) .Panes(verticalPanes => { verticalPanes.Add() .HtmlAttributes(new { id = "sug-top-#=SuggestionID#" }) .Collapsible(false) .Size("#if(Status == 0){#54px#}else{#100px#}#") .Content(@<div class="container"> <div class="row"> #if(Status == 0){# <div class="col-2 offset-10 float-right"> @(Html.Kendo().Button() .Name("DeleteSuggestionBtn-#=SuggestionID#") .HtmlAttributes(new { type = "button", @class = "k-btn-danger mt-2 float-right" }) .Events(e => e.Click("DeleteSuggestionBtnClick")) .Content("Delete").ToClientTemplate()) </div> #} else {# <div class="col-4"> <label>Actioned by:</label> <p>#=ActionedBy#</p> </div> <div class="col-8"> <label>Comments:</label> <p>#=Comments#</p> </div> #}# </div> </div>); verticalPanes.Add() .HtmlAttributes(new { id = "sug-bottom-#=SuggestionID#", @class="iv-pane-no-overflow" }) .Resizable(false) .Collapsible(false); }).ToClientTemplate())</script>
The grid has a DetailExpand event that will populate the bottom pane of the "sug-splitter" with a partial view from the controller using AJAX. The content all loads, but the script generated to make the splitter look like a splitter does not fire. If I copy the jQuery call into the console and run it, the splitter turns into what I am expecting.
<script>kendo.syncReady(function(){jQuery("#vertical-18b41377-7c46-4e83-b72c-84e9a6589135").kendoSplitter({"panes":[{"collapsible":false,"scrollable":false},{"collapsible":false,"resizable":false,"size":"100px"}],"orientation":"horizontal"});});</script>
I have loaded content with a splitter in it previously, although this was into a window, not a grid details area.
What can I do to get the splitter to load and not just be a bunch of divs on page?
