cyberhobo / ColumnFilterWidgets

This is an add-on for the DataTables plugin for jQuery that creates filtering widgets based on the data in table columns.
69 stars 34 forks source link

Memorize filter in session PHP #45

Closed ArmandArthur closed 4 years ago

ArmandArthur commented 4 years ago

Hello,

I would like memorize the filter in session PHP, and loading filters from PHP session to memorize the old state after changing page?

It's possible?

cyberhobo commented 4 years ago

This project is entirely javascript that runs in the browser, no PHP, so it's not practical to use the PHP session. Also there isn't a yet feature to provide initial values for the widgets, which we'd need to restore prior selections.

ArmandArthur commented 4 years ago

I found the solution.

$('class_select').val(value1).trigger('change'); $('class_select').val(value2).trigger('change');