datatable has keys inline editor option
keys: {
editor: editor
},
editor has submit (and works fine mostly)
formOptions: {
inline: {
onBlur: 'submit',
}
},
...
{
label: "MissingDNA",
name: "MissingDNA",
type: "select",
options: [
{ label: "unknown", value: "" },
{ label: "true", value: "true" },
{ label: "false", value: "false" },
],
def: ""
},
the current value is displayed in the table, but when the inline edit is initiated, the selected in the select list is always the top value (not the current value). It does not matter if I do not define a default, or change the order of the options. The first option is always selected, and with this field (MissingDNA in this example) selecting the top option does not submit, no matter the current value.
same editor and this field works OK--including the fact that the current value is selected when inline edit is initiated:
{
label: "Species",
name: "Species",
type: "select",
options: [
{ label: "MAN", value: "4" },
{ label: "BEAST", value: "5" }
]
},
I do not see a way to post an editor example in live.datatables.net