I am rendering an object to a cell, and then binding a select editor with a list of strings. However, I would like to bind the select editor with a list of objects, the same type of object that is binded to the actual cell. Can this be done? Reason I want to do this is so that when the update goes back to the server with a new value, I can have the primary key id of the object instead of just the string value that I have now.
var colM = [
{
title: 'Facility', width: 100, dataIndx: 'FacilityName', dataType: 'string',
editor: {
type: 'select',
options: facilities,
},
render: function (ui) {
return ui.rowData['Facility']['Name'];
}
},