How to destroy a datatable & make way for new datatable?

How to destroy a datatable & make way for new datatable?

lebowskilebowski Posts: 2Questions: 0Answers: 0
edited March 2013 in DataTables 1.9
Hi,

I'm using bootstrap-daterangepicker to select a range for which data will be shown in Datatables.
It is working fine.
Problem is when I select a new range in daterangepicker, it provides me with a callback function where I can do my stuff.
In that callback function, I'm calling Datatables again. But since the table is already being created, how can I destroy the previous table and show a new one in it's place?
Kindly help. I'm stuck. :(

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    > how can I destroy the previous table

    Call fnDestroy :-). If you want to remove the table from the DOM use `fnDestroy( true );` .

    Allan
  • vol7ronvol7ron Posts: 43Questions: 11Answers: 0
    edited March 2013
    the Dude will abide
This discussion has been closed.