I have kendo grid with a select option. My question is how do I get ProductName
from the last selected row? Example like this. I have tried with this but row
is null. Appreciate your help.
function onChange(e) {
var rows = e.sender.select();
rows.each(function(e) {
var grid = $("#grid").data("kendoGrid");
var row = $(e.target).closest("tr"); //<-- this value capture null
var dataItem = grid.dataItem(row);
var productName = dataItem.ProductName;
alert(productName);
})
};