Datatable Filter after a reload
Datatable Filter after a reload
I've tried https://datatables.net/reference/option/stateLoaded
When i set a Filter and reload the page i get the message "Saved filter was: " and nothing more. In this Moment i see all Datarows. But after clicking ok the last Filter is applied. Only one Datarow stays, what is correct but the Combobox with the filter stays empty. I run into this with datatatables 1.10.24 and with 1.11.3 too. How to apply the filter to the combobox too after a relaod?
The Debugger shows correct: "Rows - after search: 1" and no errors. Uploading fails and the site is lokal, so i can't link.
What can i do?
Thanks and best regards.
Replies
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
I hope, i've understand it and it will work (sorry my english is not perfect...) live.datatables.net/doselave/3/edit
Select a Filter in the Position Combobox. The Content is filtered.
Click on "Run with js" The Content is Filtered but the Position Combobox doesen't show the Filter.
This thread discusses the same issue. See if it helps.
Kevin
The code tags don't work propperly , sorry...
And my last Message is gone?
I've tried:
But all rows are visible when the now Message appears. After clicking okay the filtered rows disappear and the comboboxes stay empty
There were a few things wrong with your script.
input
elements, you're usingselect
This updated example addresses those two issues,
Colin
Oh my...
It works.
Many many thanks...