Two rows in THEAD (for sorting and filtering) and Responsive behavior

Two rows in THEAD (for sorting and filtering) and Responsive behavior

LoloLolo Posts: 42Questions: 7Answers: 1

Hello,

I would like to have two row in my header.
One for filtering and another one for sorting columns.

You can find an working example here : https://jsfiddle.net/0hoxy40o/

In this example, it works quite well but as you can see, input text in header (the second line) are not correctly hidden with responsive whereas header columns in the first one are correctly hidden.

I have tried to invert the header row but there is always the same behavior.

Is it a bug?
Do you have an idea how I can do it?

Thanks in advance and have a nice day.
Lolo.

Replies

  • LoloLolo Posts: 42Questions: 7Answers: 1

    Does DataTables support officially Responsive design with two or more rows in header?

    Otherwise, is there any trick I can do to hide the input fields myself?

  • jr42.gordonjr42.gordon Posts: 305Questions: 2Answers: 49

    Check out this plugin https://github.com/vedmack/yadcf, i think it will server you better and shouldn't need separate rows.

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin

    Does DataTables support officially Responsive design with two or more rows in header?

    Unfortunately, currently no. This is a missing feature in Responsive 2 which I need to address. Responsive 2.1 should see that done, but I'm not sure when I'll get a chance to implement that I'm afraid.

    Allan

  • LoloLolo Posts: 42Questions: 7Answers: 1

    Thank you jr42.gordon, I will have a look to this plugin.

    Thank you allan for your answer. I will wait for the next Response version and I will see if it is available or not.
    Thanks a lot for your amazing work!!!

  • mohierfmohierf Posts: 4Questions: 1Answers: 0

    Allan, any news about this feature availability ?

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin

    Not yet sorry - I've been working on other things. The releases feed will contain an announcement when Responsive is updated to support complex headers.

    Allan

This discussion has been closed.