Editor doesn't add id to row on update

Editor doesn't add id to row on update

sergedasergeda Posts: 42Questions: 16Answers: 0

Hello.
I configured idSrc option to use "id" field to render row. I use inline edit. And everything working fine. But after editor get data from server it replaces row with a new data and doesn't add id to the <tr>. Because of this next updates fail. How can I fix this issue?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,687Questions: 1Answers: 10,100 Site admin
    Answer ✓

    Could you try setting the rowId option in the DataTable please? It is DataTables that sets the id attribute for the tr, not Editor. Editor should be able to read the id from any data point in an object which is what the idSrc option is for.

    Allan

This discussion has been closed.