get only the column that filtered the table the first time

get only the column that filtered the table the first time

Jasmine_BadrihJasmine_Badrih Posts: 5Questions: 2Answers: 0

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?

Answers

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    Is there anyway to get only the column that filtered the table the first time?

    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. Use stateLoadParams to retrieve this when the page is loaded.

    Kevin

This discussion has been closed.