When have new data, it just refreshes the div. I managed to find the sortColumn and sortDirection properties to preserve any sorting, which was nice. The problem is that I can't seem to preserve filtering using the filters property. Also, if I reset the filters with filter={} in the DataTable, the active filters on the table reset but the text typed by the user still remains in the filter box(es) at the top of the table.
I'm using a function to create a table in a div:
When have new data, it just refreshes the div. I managed to find the
sortColumn
andsortDirection
properties to preserve any sorting, which was nice. The problem is that I can't seem to preserve filtering using thefilters
property. Also, if I reset the filters withfilter={}
in the DataTable, the active filters on the table reset but the text typed by the user still remains in the filter box(es) at the top of the table.