Hi, I'm trying to render a list of metrics with sparklines using a listview. I'm using MVVM to do this..... but it doesn't bind the spark lines ... here is some of my code:
In this code the sparkline code is static, but I hope to make it dynamic ... do you have some advice?
Thanks in advance ...
<div data-role="listview" data-template="metric-summary-template" data-source="app.getMetricDescriptionsDataSource" style="width: 380px; height: 200px; overflow: auto"></div><script type="text/x-kendo-tmpl" id="metric-summary-template"> <div class="metric-view"> <div>#= Name #</div> <div data-role="sparkline" data-series="[{ type: 'column', field: 'TMax', color: '\#ff0000', negativeColor: '\#0099ff' }]" data-tooltip="{ visible: true }" data-source="app.getTestDS" style="height:30px"></div> </div> </script>Thanks in advance ...