multi_filter_select in the header

multi_filter_select in the header

nico077nico077 Posts: 55Questions: 14Answers: 2

Hello Allan,

I use an example

https://datatables.net/examples/api/multi_filter_select.html

But i modify the script to insert the select in the header.

The problem, when i want to use this select, i need to hold the click of the mouse (On Firefox 40.0.2) to select in the dropdown list.
When i use one click, Datatable use the sort function

Best regards,
Nicolas

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.

    Information on how to create a test page, if you can't provide a link to your own page can be found here.

    My guess is you need to put the select elements into a different header row from the sort icons, but without a test case it is impossible to say.

    Thanks,
    Allan

  • nico077nico077 Posts: 55Questions: 14Answers: 2

    Hello Allan,

    When i use fixedHeader and the multi filter select in the header, i have the problem (described the August 25).
    The link of my problem (On Firefox 40.0.2) ---> https://jsfiddle.net/ztxfqh1q/

    Best regards,
    Nicolas

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Thanks. The issue is that there is there is already an event listener on the header cell (the sort listener) and you need to stop the click event on your select element bubbling up to it: https://jsfiddle.net/ztxfqh1q/2/

    Allan

  • nico077nico077 Posts: 55Questions: 14Answers: 2

    That worked, wonderfully.

    Thank you very much for your help.

    Nicolas

This discussion has been closed.