datatable icon indicating copy to clipboard operation
datatable copied to clipboard

Table reload method

Open brvhprince opened this issue 2 years ago • 2 comments

This is more of a feature request than an issue. A method you can call e.g datatable.reload() to re-fetch the data from the provided URL on the AjaxOptions . The refresh property is available but it might not be useful and relevant in some use cases.

Example Use Case

A user table with options to toggle status on/off via an ajax call. After execution, I would like to fetch and update the existing data without having to reload the page.

brvhprince avatar Mar 23 '22 17:03 brvhprince

I am not working actively on this project right now so it's unlikely this feature will ever be implemented but you can probably mimic it by simply deleting the old datatable and recreating with the exact same parameters.

Holt59 avatar Mar 23 '22 17:03 Holt59

Thanks for the feedback. I've added a custom method and it works fine. 👍

brvhprince avatar Mar 23 '22 18:03 brvhprince