I am trying to create a grid declaratively with a detail tempate.
I have called the kendo.ns method to change my namespace (kendo-) as to not clash with ko.
Here is the source for the grid:
I have a simple template for detailTemplate
If I remove the line with the data-kendo-detail-template, the grid displays fine. However with it in, the grid does not display at all.
Any ideas what might be causing this?
Also, assuming I do get this working, will it be possible to have the template also be defined as a declarative grid using a property of the main grid's data item for its data? Or am I better off doing this in javascript?
thanks,
eric
I have called the kendo.ns method to change my namespace (kendo-) as to not clash with ko.
Here is the source for the grid:
<div> data-kendo-role="grid" data-kendo-sortable="false" data-kendo-pageable="false" data-kendo-scrollable="true" data-kendo-detail-template="detailTemplate" data-kendo-bind="source: items"> </div><script id="detailTemplate" type="text/kendo-template"> <h1>Hello</h1></script> Any ideas what might be causing this?
Also, assuming I do get this working, will it be possible to have the template also be defined as a declarative grid using a property of the main grid's data item for its data? Or am I better off doing this in javascript?
thanks,
eric