How do I enable sorting on a grid when using a row template.
For example I took the "Row Template" demo and added "sortable: true", but this did not work. Is there an additional step I am missing?
Here is what I tried:
Less important: how can I add the alternating row backgrounde effect when using a row template?
For example I took the "Row Template" demo and added "sortable: true", but this did not work. Is there an additional step I am missing?
Here is what I tried:
<script>
$(document).ready(
function
() {
$(
"#netflixTable"
).kendoGrid({
dataSource: {
type:
"odata"
,
serverFiltering:
true
,
filter: [{
field:
"Name"
,
operator:
"contains"
,
value:
"Star Wars"
}, {
field:
"BoxArt.SmallUrl"
,
operator:
"neq"
,
value:
null
}],
transport: {
}
},
sortable:
true
,
rowTemplate: kendo.template($(
"#rowTemplate"
).html()),
height: 200
});
});
</script>
Less important: how can I add the alternating row backgrounde effect when using a row template?