How can I add a row in the right place

How can I add a row in the right place

richard.panfrichard.panf Posts: 1Questions: 1Answers: 0
edited October 2015 in General

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

Answers

  • allanallan Posts: 63,685Questions: 1Answers: 10,498 Site admin
    Answer ✓

    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

This discussion has been closed.