.ClientTemplate() is not working inside the child grid. I'm also posting the example explaining the issue.
This is the Parent grid:
@(Html.Kendo().Grid(Model.DeliquencRulesGridVM)
.Name("deliquencRulesGridVM")
.Columns(columns =>
{
columns.Bound(c => c.Id).Hidden();
columns.Bound(c => c.RuleNumber)
.Title(@AonWrapStringResources.Deliquency_Label_RuleNumber)
.Width(200)
.HtmlAttributes(new { })
.Filterable(f => f.Extra(false)
.Messages(m => m.Info(@StringResources.Generic_GridFilter_Refine + " " + @AonWrapStringResources.Deliquency_Label_RuleNumber + ":")));
})
.ClientDetailTemplateId("deliquency-grid")
.Events(e => e
.DataBound("delinquency.gridDataBound")
)
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.PageSize(10)
.Model(model =>
{
model.Id(p => p.Id);
})
.ServerOperation(false)
)
.Resizable(resize => resize.Columns(true))
.Deferred()
)
And this is the child grid in which .ClientTemplate() is not working.
<script id="deliquency-grid" type="text/kendo-tmpl">
<div id="DeliquencyFollowUpGrid">
<div class="grid-outside">
@(Html.Kendo().Grid(Model.DeliquencFollowUpGridVM)
.Name("deliquencFollowUpGridVM")
.Columns(columns =>
{
columns.Bound(c => c.Active)
.Title(@AonWrapStringResources.BrowseProgram_Label_Active)
.Template(@<text></text>)
.HtmlAttributes(new { @class = "text-center" })
.ClientTemplate("Hello")
.Width(102);
})
.Events(e => e
.DataBound("delinquency.gridFollowUpDataBound")
)
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.PageSize(10)
.Model(model =>
{
model.Id(p => p.Id);
})
.ServerOperation(false)
)
.Resizable(resize => resize.Columns(true))
.Deferred()
.ToClientTemplate()
)
</div>
</div>
</script>
Could you please help me on this. It would be much appreciated if you can help me on this.