Reset dataTable data
Reset dataTable data
![guilhermemaranhao](https://secure.gravatar.com/avatar/3d24a680e39d9f7ca6569284ae20436a/?default=https%3A%2F%2Fvanillicon.com%2F3d24a680e39d9f7ca6569284ae20436a_200.png&rating=g&size=120)
Hi everyone,
Maybe it's a dumb question, but I didn't find the solution anywhere!
How can I reset my dataTable data after a search query removal?
For example, first I have my query: "something"
table.column(0).search("something").draw();
After removing my query I need to reset the data to the original state.
How can I achieve that?
Thanks,
guilherme
This discussion has been closed.
Answers
This should do what you want:
table.column(0).search("").draw();
Kevin
Great! It worked!
Thank you