How to best programmatically read active filters in columncontrol?

How to best programmatically read active filters in columncontrol?

henrik khenrik k Posts: 17Questions: 6Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

What's the best method to programmatically read what an end user has put in for search values in columns with the column control?

E.g. I have a column that's named 'name' and an end user has set a filter that only include names that contains henrik, how to extract that the filter contains is active with the data 'henrik'?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 65,740Questions: 1Answers: 10,934 Site admin
    Answer ✓

    At the moment there is no defined public API for ColumnControl to set filters I'm afraid. It is something I'd like to add, but it is unlikely to happen until at least next year unless it is sponsored.

    That said, have a look at this discussion which notes how a filter can be set using DOM methods directly.

    Allan

  • henrik khenrik k Posts: 17Questions: 6Answers: 0

    Ok thanks. Will look into different other options and the thread you linked to. Will think about sponsorship as well, but I think we'll find another solution for our use case that we can implement rather sooner than wait for a formal implementation. Thanks

Sign In or Register to comment.