check for existing record in datatables before adding a new one

check for existing record in datatables before adding a new one

erickwidyaerickwidya Posts: 1Questions: 0Answers: 0
edited December 2011 in DataTables 1.8
hi all,

is it possible to check for existing record before we adding a new one

any insight?

PS: i'm a bit new for jquery and Datatables :((

thx,
erick

Replies

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    edited December 2011
    Sure - use fnGetData to get the data in the table, run through the array checking for a duplicate. If there isn't a duplicate found use fnAddData to add your new row as normal.

    Allan
This discussion has been closed.