How does one bind the alternating row template in mvvm.
Can't seem to find a declarative way to do it
Its not data-alt-row-template and its not data-row-alt-template
What am I overlooking.
Can't seem to find a declarative way to do it
Its not data-alt-row-template and its not data-row-alt-template
What am I overlooking.
<script id=
"AlertViewTemplate"
type=
"x-kendo-template"
>
<div data-role=
"grid"
id=
"gridAlerts"
data-scrollable=
"true"
data-row-template=
"AlertRowTemplate"
data-alt-row-template=
"AlertAltRowTemplate"
data-columns="[
{ field:
'idradio'
, title:
'Radio ID'
},
{ field:
'idthing'
, title:
'FCI Serial#'
},
{ field:
'typealertdescription'
, title:
'Alert'
},
{ field:
'clearactiondescription'
, title:
'Status'
},
{ field:
'datecreated'
, title:
'Date Logged'
},
{ field:
'datecleared'
, title:
'Date Cleared'
}
]"
data-bind=
"source: Alerts, visible: isVisible"
>
</div>
</script>
<script id=
"AlertAltRowTemplate"
type=
"text/x-kendo-tmpl"
>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</script>
<script id=
"AlertRowTemplate"
type=
"text/x-kendo-tmpl"
>
<tr>
<td>${idradio}</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</script>