-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
two header lines issues #1362
Comments
Hi @assachs! Sorry for not responding earlier. I'm still catching up with issues after returning from vacation. The issue you've encountered is as intended... a table will always have a set number of columns, but may not always have the same number of header cells. headers
sortList
I hope that makes things clearer. |
Hello, thanks for your reply. I hope you had good vacations ;) I understand the difference between headers and and sortlist now. But i still think there is a problem with headers and two header rows. Look at the following examples: http://jsfiddle.net/ke52bbf1/ Now, i have a two header row example: |
Hmm, yes it does appear that there is a problem with the way the To get around this problem, set the parser by data-attribute, class name or completely disable the first header row by adding a class name of "tablesorter-ignoreRow" to the |
With two row headers I found I could add the sort buttons only to the second row, not the first row by setting
But If I then want to set some columns not to be sorted e.g.
Then the first column is still sortable. But if I don't set selectorHeaders then I can disable some columns, but only for the first row. If I use the class name "tablesorter-ignoreRow" on the first in the header then it disables sorting for that row, leaves sorting for the other row, but doesn't allow me to set columns not to be sorted. |
Hi @JohnSmall! The key should be set to headers: {
0: { sorter: false }
} |
Hello,
i have some issues with two header lines. I'm not sure, if they belong together
sortList count's second row (http://jsfiddle.net/pehruqqL/1/):
sortList: [[1,0]] sorts the second col of the second row.
headers counts both rows:
http://jsfiddle.net/pehruqqL/2/
headers: {
4: {sorter:false} //first row cols 0 - 2, second cols 3 - 11
}
changing the sorter of the second row has no effect:
headers: {
4: {sorter:'customParser'} //first row cols 0 - 2, second cols 3 - 11
}
(it's working with class-attribute)
The text was updated successfully, but these errors were encountered: