How to Save New Row

How to Save New Row

eh.nathaneh.nathan Posts: 1Questions: 1Answers: 0

So, I have the table working and reads manually put in data from the json but when I click new and type row info in it doesn't save.

How would I make it save the datatable row to the JSON?

Answers

  • bindridbindrid Posts: 730Questions: 0Answers: 119
    edited September 2017

    How are you adding the row? If you are using $("#example"). DataTable.row.add(newrow).draw() it will add to the json data object found at DataTables and you can get the updated json object by $("#example").DataTable().rows().data()

This discussion has been closed.