Editor doesn't add id to row on update
Editor doesn't add id to row on update
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
This discussion has been closed.
Answers
Could you try setting the
rowIdoption in the DataTable please? It is DataTables that sets theidattribute for thetr, not Editor. Editor should be able to read the id from any data point in an object which is what theidSrcoption is for.Allan