Reload new content in table

Reload new content in table

kishlay_mathurkishlay_mathur Posts: 2Questions: 1Answers: 0

I am using datatable. it is working for initial data load but when new data fetched it is giving warning 3 can not reinitialized datatable. I tried to use destroy but now error is not coming but latest data is not coming in table, Please help me this, very urgent

Answers

  • ignignoktignignokt Posts: 146Questions: 4Answers: 39
    edited November 2014

    Well you didn't post any of your code so it is hard to say what you are doing wrong. If you use the API make sure you are initializing your table with .DataTable instead of .dataTable. Here is the API documentation on reloading the data

  • kishlay_mathurkishlay_mathur Posts: 2Questions: 1Answers: 0

    hi @ignignokt , I resolve this issue. basically on button click new data is populating in table . I use this
    table = $j('#tableDetails').DataTable( {
    retrieve: true
    });
    table.destroy();

    some operation here

    table = $j('#tableDetails').DataTable( {
    "pagingType": "full_numbers",
    searching: false,
    ordering: false,

                            } );
    
This discussion has been closed.