Hi,
Please see the code below : I still dont see the values.. Can you please correct whats wrong in this?
function clientsauto() {
var jst;
$.getJSON(clientslink, function (data) {
var o = _.object(_.map(data, function (x) { return [x.Value, x.Text] }));
jst = JSON.stringify(data);
console.log(jst); // jst has [{"Text":"Select a Client","Value":"0"},{},{..}]
return jst;
});
}
editor: {
type: "select",
options: clientsauto,
getData: function (ui) {
return ui.$cell.find("select").val()
}
},
render: function (ui) {
var options = ui.column.editor.options,
cellData = ui.cellData;
for (var i = 0; i < options.length; i++) {
var option = options;
if (option[cellData]) {
return option[cellData];
}
}
},