Editor event when multiple rows has been submitted?

Editor event when multiple rows has been submitted?

TronikTronik Posts: 54Questions: 13Answers: 0

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: 50,737Questions: 1Answers: 7,581 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: 54Questions: 13Answers: 0

    Hi Allan,

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

Sign In or Register to comment.