Remove row of datatable is not selected

Remove row of datatable is not selected

niconico_forumniconico_forum Posts: 1Questions: 1Answers: 0

Hello,

I want to delete a line from my datatable but I can not. Indeed, I have a table users with a hidden field "id" of it. How can I delete this line ...

My use case is this: I have 5 operators that update at the same time a user list and it must therefore always be updated via WebSocket clients will be notified of the change. This WebSocket sends me "userId" was deleted from the user list.

I can not send indexRow because if other operators are not on the same page it all wrong.

thank you in advance

Answers

  • allanallan Posts: 63,799Questions: 1Answers: 10,514 Site admin

    If the id is the row ID you should be able to simply use row().remove() with the id as the row selector.

    Can you please link to a test case showing the issue, as required in the forum rules, so I can fully understand the issue and offer some help.

    Allan

This discussion has been closed.