How to insert filter input AFTER sort arrows

How to insert filter input AFTER sort arrows

AlphAndruinoAlphAndruino Posts: 3Questions: 1Answers: 0

Hello

I'm working based on filter example and I manage to make it works perfectly except a little detail : the input field is inserted between colum title and sorting arrows.

Is it possible to insert input field AFTER sorting arrows?

I use this code to move inputs from footer to header :

$('#tblAccount tfoot tr').appendTo('#tblAccount thead');

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @AlphAndruino ,

    This thread here should help - there's an example in there too.

    Cheers,

    Colin

  • AlphAndruinoAlphAndruino Posts: 3Questions: 1Answers: 0

    Thanks, a lot, but I did not manage to make the example works on my code, I don't understand why.

    I tried several things but style seems not to be applied, and on the example, the sorting arrows are not the one I have. Meanwhile I have downloade the very last version of datable...Don't know.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • kthorngrenkthorngren Posts: 21,344Questions: 26Answers: 4,954
    Answer ✓

    You may want to consider moving the sorting arrows to the top header row using orderCellsTop.

    Kevin

  • AlphAndruinoAlphAndruino Posts: 3Questions: 1Answers: 0

    OrderCellsTop works fine. Thanks a lot

This discussion has been closed.