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

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

MadMax76MadMax76 Posts: 119Questions: 25Answers: 0

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: 12,502Questions: 0Answers: 2,122

    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: 119Questions: 25Answers: 0

    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: 54,580Questions: 1Answers: 8,535 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: 119Questions: 25Answers: 0

    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

Sign In or Register to comment.