How to deselect a row after editing it

How to deselect a row after editing it

TomBajzekTomBajzek Posts: 163Questions: 36Answers: 1

I need to deselect a row after successfully editing it. I made a handler for the 'submitSuccess' event, but I have not figured out how to refer to the row that was just edited, which is still selected.

I think I need to use row().deselect(), but I haven't figured out how to refer to the currently selected row, the one that was just edited.

Thanks,
Tom

Replies

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    I haven't figured out how to refer to the currently selected row, the one that was just edited.

    table.row( { selected: true } ).deselect();
    

    See the documentation here for more details.

    Allan

This discussion has been closed.