Problem with table reset with data

Problem with table reset with data

natanInformnatanInform Posts: 1Questions: 1Answers: 0

I have a table in which it originally starts with no data, but I have a select that when I click a button it inserts data into that table, but when I do this and the table is already started it counts as if the table had no data , how could I make every record insert it reset the table?

I've already tried that when I click on the button, use the destroy function and then at the end of the insertion process, initialize the table again, but it conforms to the situation above, as if the table hadn't given any according to the datatable

Answers

  • kthorngrenkthorngren Posts: 21,182Questions: 26Answers: 4,925

    You can use rows.add() to add the rows. If you are using Javascrpt or jQuery methods to update the table data then Datatables won't know about the changes. See this FAQ for more info.

    Kevin

Sign In or Register to comment.