kendo ui "Invalid template" error in a column client template within a detail template
<p>I have a grid with a client detail template. This detail template is rendered in a separate partial view. Within this grid I need to use client templates to format some of the columns. Unfortunately I run into an invalid template error.</p>

<p>This is my detail template:</p>

<pre><code>&lt;script id="operationDetailTemplate" type="text/kendo-template"&gt;
@(Html.Kendo().TabStrip()
    .Name(componentName: "tabStrip_#=Id#")
    .SelectedIndex(index: 0)
    .Animation(animation =&gt; animation.Open(open =&gt; open.Fade(FadeDirection.In)))
    .Items(items =&gt; {
        items.Add().Text(this.LocalResources(key: "Messages")).Content(@&lt;text&gt;
            @(Html.Kendo().Grid&lt;NotificationViewModel&gt;()
                .Name(componentName: "notificationGrid_#=Id#")
                .Pageable()
                .Scrollable()
                .Filterable()
                .Sortable()
                .Columns(col =&gt; {
                    col.Bound(c =&gt; c.DateCreated).Format(value: "{0:yyyy/MM/dd HH:mm}");
                    col.Bound(c =&gt; c.Severity);
                    col.Bound(c =&gt; c.Title);
                    col.Bound(c =&gt; c.Text).ClientTemplate(string.Format("{0}...", "#= formatter(Text, 20) #"));
                })
                .DataSource(ds =&gt; ds.Ajax().Sort(sort =&gt; sort.Add(memberName: "DateCreated").Descending())
                    .Read(read =&gt; read.Route(MessageEventControllerRoute.PostReadForOperation, new RouteValueDictionary { { "operationId", "#=Id#" }, { "culture", UICulture.ToLower() } })))
                .ToClientTemplate())
        &lt;/text&gt;
            );
        items.Add().Content(@&lt;text&gt;
            @(Html.Kendo().Grid&lt;OperationViewModel&gt;().Name(componentName:"alternativesGrid")
                .Columns(col =&gt; {
                    col.Bound(op =&gt; op.OperationIdFormatted);
                    col.Bound(op =&gt; op.EfficiencyRank);
                    col.Bound(op =&gt; op.WorkOrder.WorkOrderIdFormatted);
                    col.Bound(op =&gt; op.Length)
                        .ClientTemplate(value: "#if (data.Length) {# #:kendo.toString(Length.Hours, '00')#:#:kendo.toString(Length.Minutes, '00')#:#:kendo.toString(Length.Seconds, '00')# #}#")
                        .EditorTemplateName(templateName: "TimeSpan");
                })
                .DataSource(ds =&gt; ds.Ajax()
                .Read(read =&gt; read.Route(OperationControllerRoute.PostOperationAlternatives, new RouteValueDictionary { { "workOrderId", "#=Operation.WorkOrderId#" }, { "seqNo", "#=Operation.SequenceNumber#" }, { "culture", UICulture.ToLower() } })).Model(m =&gt; m.Id(op =&gt; op.Id)))
                .ToClientTemplate()
            )&lt;/text&gt;);
    })
    .ToClientTemplate())
&lt;/script&gt;
</code></pre>

<p>As I am not able to pass an template id to the column template, I have no idea how to avoid the invalid template error.</p>

<p>Any ideas how to use client templates in this scenario?</p>

<p>Regards
Bernd</p>