Problem with custom search and search panes

Problem with custom search and search panes

khunicyclerkhunicycler Posts: 1Questions: 1Answers: 0

Link to test case: https://jsfiddle.net/sutb735w/
Debugger code (debug.datatables.net): https://debug.datatables.net/umuzet
Error messages shown: None
Description of problem: When I am using a custom search as shown in the example on this page, the custom search does not play nicely with the search panes. If you enter a value in the min and/or max input fields, you will see that the values in the search panes all go away. I would expect that they would filter the same as they would if you used the search box. What needs to be changed in this example so that the custom search works the same as the search input with search panes?

This question has an accepted answers - jump to answer

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @khunicycler ,

    Take a look at this forum post asking the same thing.

    The solution is to only act on the desired table by adding

    if (settings.nTable.id !== 'myTarget'){
      return true;
    }
    

    to the top of your plugin.

    Thanks,
    Sandy

This discussion has been closed.