I am using jquery version of kendo ui grid. See the sample below. I am using a custom kendo drop down editor, when row is having a single peron name. However multiple names are binded to the grid in a comma separated manner by using template. But when on selection from the dropdown it is returning me the person name rather than the entire selected object. How to return the selected object fom kendo dropdown to the kendo UI grid.
Persons Column
Peter,John
Russel
Grid Template:
field: "PeronNamesList",
title: "Names", editor: nameEditor,
template: function (dataItem) {
if (dataItem.PeronNamesList.length > 0) {
var names="";
for (var i = 0; i < dataItem.PeronNamesList.length; i++) {
tasks += dataItem.PeronNamesList[i].Name + ",";
}
return names;
}
else {
return "";
}
}