when a table has two rows in head,how to sort?

when a table has two rows in head,how to sort?

dis_dldis_dl Posts: 2Questions: 0Answers: 0
edited January 2013 in DataTables 1.9
I have a table,two rows in head,and I want to sort by every column(per column in two rows),but it doesn't do it.how should I do?
e.g:


Name
birthday
Age
Sexy


Address
Telephone




Jack1
1983/12/31
30
male


New York
1234567


susan
1982/12/31
31
female


L.A
123456744

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    You need to add an event listener to the colspan cell yourself which will call fnSort to do a multi-column sort. DataTables will not do that automatically.

    Allan
  • dis_dldis_dl Posts: 2Questions: 0Answers: 0
    Thank you very much!
    I'm a chinese,and I'm a beginner,so I don't know exactly how to do it.Could you provide a sample for me,please?
    I know it's unreasonable requirement,but I have no idea about it.Please help me and reply as soon as possible!

    Sunny Lee
This discussion has been closed.