Editor with select box column returns first value when editing other columns
Editor with select box column returns first value when editing other columns
I have an editor datable with inline editing, one of the columns has a select drop down. If while editing a column that isn't the select box, in the preSubmit event, the value for the selectbox column always is the first id in the select box list. i.e
editor
.on('preSubmit', function( e, o, a ) {
console.log(a)
data = o.data[Object.keys(o.data)[0]]
data.subsystem = data.system_name
data.system_name = Window.credsManager.teams[data.system_name]
});
This discussion has been closed.
Answers
That can happen when the value of that field for the row being edited is not in the list of options for the
select
. Can you give me a link to the page so I can take a look and confirm if that is the case?Thanks,
Allan
Was this problem solved, if so. What was the solution?
Hi @QueenGenetics ,
As Allan said, "That can happen when the value of that field for the row being edited is not in the list of options for the
select
." That would be the first place to look. If no joy, could you link to your page, please.Cheers,
Colin