How to change ordering handler from TH to subelement of TH?

How to change ordering handler from TH to subelement of TH?

ThakczThakcz Posts: 2Questions: 1Answers: 0

Link to test case: https://datatables.net/extensions/fixedheader/examples/options/columnFiltering.html
Description of problem: How to make filter field not to automatically sort when you click on filter field? THead of the table automatically triggers sorting. I would like to sort, when you click on arrows not on the whole thead.

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    The example you linked to is already doing what you want.

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    The example uses orderCellsTop to move the sorting to the top header row.

    Kevin

  • ThakczThakcz Posts: 2Questions: 1Answers: 0

    But what if I want to have one-line header and not to use any extension?

    It means that one of the titles of the header will be input field with filter and it will be in one line not in two lines?

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

    See if this thread helps,

    Colin

This discussion has been closed.