I have in tag "thead" several "tr" tags. How to specify "tr" which will contain ordering?

I have in tag "thead" several "tr" tags. How to specify "tr" which will contain ordering?

dnl2012dnl2012 Posts: 4Questions: 1Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

This question has an accepted answers - jump to answer

Answers

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

    The ordering by default is ascending on the first column. If you want to modify the default order, you can use order during the initialisation,

    Colin

  • dnl2012dnl2012 Posts: 4Questions: 1Answers: 0

    Yeah, but I have to specify row(not column) in which i would have ordering

  • dnl2012dnl2012 Posts: 4Questions: 1Answers: 0
    edited July 2023

    I mean row in which would be all order columns

  • allanallan Posts: 63,262Questions: 1Answers: 10,423 Site admin
    Answer ✓

    At the moment it is only possible to tell DataTables to use the first row of the header or the last. orderCellsTop is the parameter for that.

    That's an area of DataTables that needs to be improved. Is top / bottom okay for your needs?

    Allan

  • dnl2012dnl2012 Posts: 4Questions: 1Answers: 0

    Yes Allan ) I thank you very much.

Sign In or Register to comment.