refresh data if using pipeline from server side data

refresh data if using pipeline from server side data

madmikemadmike Posts: 30Questions: 4Answers: 0

Hi,

I have a trouble to refresh data on datatables. I'm using the pipeline example from datatables, due to a large load of data. But I failed to find a solution to force a refresh after data modification (using a form, from a bootstrap dialogue).

Anyone have a example of force refresh of pipeline ?

Thanks a lot for your help,
Mike

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    Hi Mike,

    The pipeline example code actually registers a plug-in API method which provides the ability to clear the pipeline - you could use it thus:

    table.clearPipeline().draw();
    

    i.e. clear and then reload.

    Allan

  • madmikemadmike Posts: 30Questions: 4Answers: 0

    Thanks a million.
    In my case I used it like this to make it work :

    $('table.dataTable').DataTable().clearPipeline().draw();
    

    Have a well end of this year !!!

This discussion has been closed.