Selecting/Sorting dataTables column
Selecting/Sorting dataTables column
reddo
Posts: 6Questions: 0Answers: 0
Hello.
I have the following setup:
http://live.datatables.net/hipilix/1/
As you can see, I have two rows in the header and 1 row in the footer.
My problem is the following: the very first row in the `thead` and the 1 row in the `tfoot` don't get allocated their respective sorting classes.
Is there a problem with the `colspan` s in those rows and that's why the column classes don't get allocated? If so, what can I do to get around this?
Also is there a separate way to select an entire column, give that column a class, which doesn't get messed up by the colspans?
I have the following setup:
http://live.datatables.net/hipilix/1/
As you can see, I have two rows in the header and 1 row in the footer.
My problem is the following: the very first row in the `thead` and the 1 row in the `tfoot` don't get allocated their respective sorting classes.
Is there a problem with the `colspan` s in those rows and that's why the column classes don't get allocated? If so, what can I do to get around this?
Also is there a separate way to select an entire column, give that column a class, which doesn't get messed up by the colspans?
This discussion has been closed.
Replies
latest version: http://live.datatables.net/hipilix/2
Try a forum search.
In the code there is:
> ordering: false,
So order (sorting) is disabled. So DataTables wouldn't be applying any sort classes anywhere. Or am I missing something?
Allan
In 1.10 you can use the `column()` selector: http://next.datatables.net/reference/api/column()
Allan