Hi guis, thx before everything:
I'd like to use the amazing Kendo's Grid to take soma advantages like paging, filtering through DataSource and more.
As I show up in ths fiddle http://jsfiddle.net/dsubiros/5fXZq/ , I can't get selectedItem when I'm using a rowTemplate.
In this example if I change the attribute columns by " columns: ['OrderID', 'ShipName'] ", and comment out the rowTemplate attribute, grid works as expected, but I need to be able to use a template, and still get grid's selected row.
$("#grid").kendoGrid({
dataSource: dataSource,
pageable: true,
selectable: true,
rowTemplate: kendo.template($("#rowTemplate").html()),
columns: [''],
change: function() {
var id = this.select().data("id");
$("#log").html("LOG: selected id = " + id);
}
});
Please help me out.
I'd like to use the amazing Kendo's Grid to take soma advantages like paging, filtering through DataSource and more.
As I show up in ths fiddle http://jsfiddle.net/dsubiros/5fXZq/ , I can't get selectedItem when I'm using a rowTemplate.
In this example if I change the attribute columns by " columns: ['OrderID', 'ShipName'] ", and comment out the rowTemplate attribute, grid works as expected, but I need to be able to use a template, and still get grid's selected row.
$("#grid").kendoGrid({
dataSource: dataSource,
pageable: true,
selectable: true,
rowTemplate: kendo.template($("#rowTemplate").html()),
columns: [''],
change: function() {
var id = this.select().data("id");
$("#log").html("LOG: selected id = " + id);
}
});
Please help me out.