Hi
if I create kendoGrid like this:
$('#grid').kendoGrid({
dataSource: {
data: [{Name: 'Alex', Age: 44}, {Name:'David', Age: 13}]
},
rowTemplate: kendo.template($('#row-template').html()),
});
the template looks this:
<script id="row-template" type="text/x-kendo-template">
<tr class="k-grid-edit-row" ">
<td>
<input data-bind="value: Name"/>
</td>
<td>
<inputd ata-bind="value: Age"/>
</td>
</tr>
</script>
then I see the grid rendered correctly but the databinding is not working at all.
thanks
if I create kendoGrid like this:
$('#grid').kendoGrid({
dataSource: {
data: [{Name: 'Alex', Age: 44}, {Name:'David', Age: 13}]
},
rowTemplate: kendo.template($('#row-template').html()),
});
the template looks this:
<script id="row-template" type="text/x-kendo-template">
<tr class="k-grid-edit-row" ">
<td>
<input data-bind="value: Name"/>
</td>
<td>
<inputd ata-bind="value: Age"/>
</td>
</tr>
</script>
then I see the grid rendered correctly but the databinding is not working at all.
thanks