How to select edited rows

How to select edited rows

Danny GunawanDanny Gunawan Posts: 5Questions: 2Answers: 0

Hi, I am trying to select row when the row cell value has been edited using the inline editor.
Using the code from simple inline editing example: https://editor.datatables.net/examples/inline-editing/simple
What Editor event should I use to get the row selector so that I can call select() method?

Thank you.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583
    Answer ✓

    If you've got Select extension enabled, then that should happen anyway - see here.

    Otherwise, you could do something like this:

      editor.on('postEdit', function(e, json, data, id) {
        table.row(id).select();
      })
    

    Colin

This discussion has been closed.