I have a grid with a local data array.
how can I do a row select on it?
Thanks-
$("#dataGrid").kendoGrid({
dataSource: {
data: customerData, // local array
schema: { model: {id: "CustomerPK"} },
group: [ { field: "CustomerType", dir: "asc" }]
},
groupable: true,
selectable: true,
change: function() {
var custID = this.select().data("id");
alert("Selected " + custID); // 'undefined'
}
});
how can I do a row select on it?
Thanks-
$("#dataGrid").kendoGrid({
dataSource: {
data: customerData, // local array
schema: { model: {id: "CustomerPK"} },
group: [ { field: "CustomerType", dir: "asc" }]
},
groupable: true,
selectable: true,
change: function() {
var custID = this.select().data("id");
alert("Selected " + custID); // 'undefined'
}
});