Live DOM Filtering

Live DOM Filtering

DylanRossDylanRoss Posts: 1Questions: 1Answers: 0

I need a way to filter by multiple columns using live data from DOM input and select elements.

Live DOM ordering is showcased in the following example and is easy enough:
https://datatables.net/examples/plug-ins/dom_sort.html

I am filtering per column basically like the following example:
https://datatables.net/examples/api/multi_filter.html

The way I understand it, sorting and filtering both work off cached data within the datatables instance by default, and the data can be updated by fnUpdate for example. I can use orderDataType on the column definition to override how the data is obtained for ordering purposes but there does not seem to be a way to do that for filtering.

There are filter overrides available which I can use to modify the data that has already been cached before filtering on it depending on its type, but the only argument passed is the cached data so I don't have a handle to the DOM nodes anywhere.

I have a few dozen tables that already do or will eventually need this functionality. Am I stuck having to muck something together so that the data is constantly updated or does DataTables support a means to achieve true live DOM filtering?

This discussion has been closed.