submitSuccess data not edited row

submitSuccess data not edited row

toomanyloginstoomanylogins Posts: 28Questions: 9Answers: 0
edited June 6 in Editor

Can some clarify I am right in assuming that data in submitSuccess data should be the edited row. I tested with multiple rows in the json but data is always the last one in the collection not the edited one.

        itemTable.on('click', 'tbody td:not(:first-child)', function (e) {
              //  let rowData = itemTable.row($(this).closest('tr')).data();
            itemEditor.inline(this, {
                onBlur: 'submit'
            });
            itemEditor.on('submitSuccess', function (e, json, data, action) {
                debugger;`

Thanks

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • toomanyloginstoomanylogins Posts: 28Questions: 9Answers: 0
    edited June 5

    using postSubmit works. However still puzzled why data is not the edited row ?

  • allanallan Posts: 64,593Questions: 1Answers: 10,683 Site admin

    The json parameter is the information that is sent back from the server. data is actually just json.data for the last row edited. It is really an artifact of when Editor only supported single row editing. I'll make a change to the docs to reflect that.

    Allan

Sign In or Register to comment.