I'm quite new to Kendo UI and would appreciate if someone could give an advice. I need to get a value of specific column when my grid row is selected. Till now I can get the values of all columns of selected row:
$("#grid").kendoGrid({
...
change:onChange,
columns: [{
field: "Number",
title: 'Number',
}, {
field: "Title",
title: "Title",
}]
});
onChange function:
function onChange(arg) {
var selected = $.map(this.select(), function (item) {
return $(item).text();
});
alert(selected);
}
I need to take the selected value of Number
column. Something like $(item[name='Number']).text();
I know I could parse the string but I guess there is another way.
Thanks a lot