Editor event when multiple rows has been submitted?

Editor event when multiple rows has been submitted?

TronikTronik Posts: 120Questions: 27Answers: 1

Hi,

Im missing something here.
I need to call a function when editor form has been submitted and table updated, regardless of how many rows been submitted.
All the events in the documentation affects all rows, submitSuccess, postSubmit and so on.

I just want function fired once.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin
    Answer ✓

    edit, preEdit and postEdit will each fire once per row that was edited, but submitSuccess and postSubmit should only trigger once per submit.

    That can be seen in this example if you open the console and enter:

    editor.on('postSubmit', function () {
      console.log('post submit');
    });
    editor.on('submitSuccess', function () {
      console.log('submit success');
    });
    

    Then edit multiple rows at once.

    Allan

  • TronikTronik Posts: 120Questions: 27Answers: 1

    Hi Allan,

    Thanks, works, thought I've tried that but oh well

This discussion has been closed.