get only the column that filtered the table the first time
get only the column that filtered the table the first time

Hi!
I have filtered the table by couple of columns, on a reload, I used state save option to get the filtered columns values, snipped code:
datatable.state().columns[3].search.search
result: "^(country1)$".
Is there anyway to get only the column that filtered the table the first time?
This discussion has been closed.
Answers
You can use
stateSaveParams
to add this information. You will need to find a way to track it during the session since state save will be called multiple times. UsestateLoadParams
to retrieve this when the page is loaded.Kevin