Trying to get a templated column in a kendo grid declaratively. Something like:
<div id="sitesGrid" data-role="grid" style="width: 800px;"
data-sortable="true"
data-columns='[{ "field": "accountName", "title": "Account", "width": "150px" },
{ "field": "subAccountName", "title": "Sub Account", "width": "180px" },
{ "field": "siteName", "title": "Site", "width": "150px" },
{ "field": { "template": "#= <input type='checkbox' />"}, "width": "80px"}]'
data-source="AuroraSurveyTool.lovs.siteList">
But this doesn't work. Completely screws up the HTML. Some help would be appreciated. Don't have a clue what I'm doing wrong. Been through every example I can find. I don't really need a check box. Could also use a simple CSS style to switch between icons, but that doesn't seem to work either. I just need to display two different states (true/false) in a column and fire an event.
<div id="sitesGrid" data-role="grid" style="width: 800px;"
data-sortable="true"
data-columns='[{ "field": "accountName", "title": "Account", "width": "150px" },
{ "field": "subAccountName", "title": "Sub Account", "width": "180px" },
{ "field": "siteName", "title": "Site", "width": "150px" },
{ "field": { "template": "#= <input type='checkbox' />"}, "width": "80px"}]'
data-source="AuroraSurveyTool.lovs.siteList">
But this doesn't work. Completely screws up the HTML. Some help would be appreciated. Don't have a clue what I'm doing wrong. Been through every example I can find. I don't really need a check box. Could also use a simple CSS style to switch between icons, but that doesn't seem to work either. I just need to display two different states (true/false) in a column and fire an event.