How can I add a row in the right place
How can I add a row in the right place
richard.panf
Posts: 1Questions: 1Answers: 0
I use $("#tableid").DataTable().row.add({"filed1":"filed1value","filed2":"filed2alue","filed3":"filed3value"});
I want the new row put in the right place I want. What should I to do?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The position of the new row in the table is entirely controlled by the ordering applied to the table. The new row will be inserted where it should be based on that ordering.
If you want it to appear in a certain position, you need to have the ordering put it there.
Allan