inline edit - submit only when leaving row - instead of cell
inline edit - submit only when leaving row - instead of cell
Hi,
I am looking for a way to submit only when the row looses focus, instead of every tiem a cell looses focus. Reason is that I trigger some functions on submit, and it would be better if they dont run after each cell.
At the moment I have
formOptions: {
inline: {
submit: "allIfChanged"
} },
Thanks
max
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Editor 2.0 introduced inline editing across a row where this is possible. Previously, as you say, editing was on a per cell basis. This example here may get you going, as it demonstrates just that.
Colin
that is quite close to what i want, but: I want the cell to be able to be clicked on for editing without prior to that clicking on the pencil. Is that possible?
Like this? It doesn't submit on blur in that example, but you can readily add
{ onBlur: 'submit' }
as the options to theinline()
method.Allan
YES! that's the one!
extra trouble was caused by
keys: {
keys: [ 9 ],
editor: editor_pos,
editOnFocus: true
},
which killed the function for some reason.
Thanks
Max