Editor inline select shows value -not text- after submit
Editor inline select shows value -not text- after submit
I have inline editor with only one editable select field. When editor open options are retrieved from external source.
editor.on('open', function() {
var options = [];
var location = editor.field('location').val();
$.getJSON('getUsers?location=' + location, function(d) {
for (var i = 0; i < d.length; i++) {
options.push({ label: d[i].name, value: d[i].id });
}
});
editor.field('boss').update(options);
});
After form is submitted, datatable will show the selected VALUE not the text.
It doesn't matter what JSON string my AJAX returns.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
What is the JSON returning? It should be returning an object with a
row
property that defines the data for the full row - Editor manual.Thanks,
Allan