MultiFilterSelect via Server-Side

MultiFilterSelect via Server-Side

JanNL_FRJanNL_FR Posts: 47Questions: 15Answers: 2

Hi,
I want to use https://datatables.net/examples/api/multi_filter_select.html via server-side.
Is that possible?
Now I get: 'no records found' when I make a selection in a drop-down list.
TestCase: https://campcare.eu/Drill/
The most likely cause: The bug usually sits on a chair at the computer :-)

Jan

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,676Questions: 1Answers: 10,497 Site admin
    Answer ✓

    Indeed it is. What I think it tripping you up is the use of regex in the search term. This is what is being sent to the server-side:

    columns[0][search][value]=^Brielle Williamson$
    

    However, I doubt you want to do a regex search in the database (you could, but you'd server-side processing script would need to be updated to allow for that).

    Try using:

    column.search(val).draw();
    

    to set and draw the search term.

    Allan

  • JanNL_FRJanNL_FR Posts: 47Questions: 15Answers: 2

    Thanks Allen, works perfect.

    Jan

Sign In or Register to comment.