Im having a problem rendering a detail template which is compose of Kendo Tabstrip. It generates an "Invalid Template" error. Below is my code
@(Html.Kendo().Grid<OrderInfo>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(e => e.OrderID);
columns.Bound(e => e.MaterialID);
})
.Sortable()
.Pageable()
.Scrollable()
.ClientDetailTemplateId("drawingtemplate")
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("ReadOrders","Admin"))
)
.Events(events => events.DataBound("dataBound"))
)
<script>
function dataBound() {
this.expandRow(this.tbody.find("tr.k-master-row").first());
}
</script>
<script id="drawingtemplate" type="text/kendo-tmpl">
@(Html.Kendo().TabStrip()
.Name("my#=OrderID#")
.SelectedIndex(0)
.Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
.Items(items =>
{
items.Add().Text("FirstTab")
.Selected(true)
.Content("try");
})
.ToClientTemplate()
)
@(Html.Kendo().NumericTextBox<double>()
.Name("my#=OrderID#")
.Format("p0")
.Min(0)
.Max(0.9)
.Step(0.01)
.Value(0.05)
.ToClientTemplate()
)
</script>
@(Html.Kendo().Grid<OrderInfo>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(e => e.OrderID);
columns.Bound(e => e.MaterialID);
})
.Sortable()
.Pageable()
.Scrollable()
.ClientDetailTemplateId("drawingtemplate")
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("ReadOrders","Admin"))
)
.Events(events => events.DataBound("dataBound"))
)
<script>
function dataBound() {
this.expandRow(this.tbody.find("tr.k-master-row").first());
}
</script>
<script id="drawingtemplate" type="text/kendo-tmpl">
@(Html.Kendo().TabStrip()
.Name("my#=OrderID#")
.SelectedIndex(0)
.Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
.Items(items =>
{
items.Add().Text("FirstTab")
.Selected(true)
.Content("try");
})
.ToClientTemplate()
)
@(Html.Kendo().NumericTextBox<double>()
.Name("my#=OrderID#")
.Format("p0")
.Min(0)
.Max(0.9)
.Step(0.01)
.Value(0.05)
.ToClientTemplate()
)
</script>