how i can add new row to datatable if not exists ?

how i can add new row to datatable if not exists ?

uno22uno22 Posts: 2Questions: 0Answers: 0
edited March 2016 in Free community support

hello everybody,
I need help, how i can add new row in datatables if this row not exists ?

https://datatables.net/examples/api/add_row.html

Replies

  • allanallan Posts: 63,785Questions: 1Answers: 10,511 Site admin

    You'd use rows().data() or similar to check if the row exists, and if it doesn't add it using row.add().

    Allan

  • uno22uno22 Posts: 2Questions: 0Answers: 0

    Thanks a lot for the quick answer !
    but i don't know what to do. does not work.

  • allanallan Posts: 63,785Questions: 1Answers: 10,511 Site admin

    Please link to the page showing what you have so far. Without being able to see anything I have no idea why what you have tried doesn't work.

    If you'd like me to build an example, priority support is available.

    Allan

This discussion has been closed.