Hi there,
I have grids which are use row templates to display data, when I start using the row templates, my sorting stops working. Is there anything which I'm missing. My template code is as follows
<script id="gridItemsRowTemplate" type="text/x-kendo-template">
# var columns = $("\\#" + gridID).data("kendoGrid").columns #
<tr data-uid="#= uid #" role ='row'>
#for(properties in columns) {#
#if (columns[properties].field == 'Id' || columns[properties].field == 'Hidetype') {#
<td role="gridcell" style ="display:none;"> #data[columns[properties].field] #</td>
#}else {#
#if (data[columns[properties].field] != undefined) {#
<td > #= data[columns[properties].field].val #</td>
#}#
#}#
#}#
</tr>
</script>
I have grids which are use row templates to display data, when I start using the row templates, my sorting stops working. Is there anything which I'm missing. My template code is as follows
<script id="gridItemsRowTemplate" type="text/x-kendo-template">
# var columns = $("\\#" + gridID).data("kendoGrid").columns #
<tr data-uid="#= uid #" role ='row'>
#for(properties in columns) {#
#if (columns[properties].field == 'Id' || columns[properties].field == 'Hidetype') {#
<td role="gridcell" style ="display:none;"> #data[columns[properties].field] #</td>
#}else {#
#if (data[columns[properties].field] != undefined) {#
<td > #= data[columns[properties].field].val #</td>
#}#
#}#
#}#
</tr>
</script>