inline edit - submit only when leaving row - instead of cell

inline edit - submit only when leaving row - instead of cell

MadMax76MadMax76 Posts: 149Questions: 33Answers: 1

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

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    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

  • MadMax76MadMax76 Posts: 149Questions: 33Answers: 1

    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?

  • allanallan Posts: 61,451Questions: 1Answers: 10,055 Site admin
    Answer ✓

    Like this? It doesn't submit on blur in that example, but you can readily add { onBlur: 'submit' } as the options to the inline() method.

    Allan

  • MadMax76MadMax76 Posts: 149Questions: 33Answers: 1

    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

This discussion has been closed.