I am trying to replicate the demo here, but using MVVM:
http://demos.kendoui.com/web/grid/toolbar-template.html
I configured the grid using data-attributes and the grid works. The problem that I am encountering is the toolbar.
I modified the toolbar template to use the data attribute to create a kendo drop-down list:
In the grid declaration I added the data-toolbar attribute referencing the template:
However, the data attributes in the template are not being processed by Kendo UI and is rendered as-is on the page. This resulted in a textbox rather than the drop-down list that I am expecting.
Is there a way to get this working?
http://demos.kendoui.com/web/grid/toolbar-template.html
I configured the grid using data-attributes and the grid works. The problem that I am encountering is the toolbar.
I modified the toolbar template to use the data attribute to create a kendo drop-down list:
<script type="text/x-kendo-template" id="template"> <div class="toolbar"> <label class="category-label" for="category">Show products by category:</label> <input type="search" id="category" data-role="dropdownlist" data-source="source"></input> </div></script>data-toolbar='[ { template: kendo.template($("#template").html()) } ]'Is there a way to get this working?