Reload Datatable

Reload Datatable

naveenramnaveenram Posts: 8Questions: 3Answers: 0

How to reload data in datatable without reloading the page. I need to change the data in data table once the user click the button and I don't want to refresh the page. Is that possible?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765
    Answer ✓

    There are a few ways depending on what you have and how you need to reload the Datatable:

    If this doesn't help then please provide more details of your environment, specifically how you are loading the data now.

    Kevin

  • naveenramnaveenram Posts: 8Questions: 3Answers: 0

    On click of action button a modal popup will be opened and after closing the modal popup I need to reload the data in datatable without refreshing the page. I have tried fndraw(),ajax.reload() . Its not working. Is there any other method?

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765

    How are you loading the initial data now? Is it Ajax loaded, DOM sourced?

    We need to understand more about your environment. Please post a link to your page or a test case replicating the issue so we can have the information to offer suggestions.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

This discussion has been closed.