Sort icons of nested tables are not shown

Sort icons of nested tables are not shown

tschmittschmit Posts: 8Questions: 4Answers: 0
edited February 2023 in Free community support

I come from the same question but with a different answer.

To have the sort icons displayed in nested table, following the header > details datable sample, I had to do the following in datatable.css:

diff --git ....datatables.css
index 3bdb78b..d2878b8 100644
--- a/cclw4c2/Scripts/DataTables/datatables.css
+++ b/cclw4c2/Scripts/DataTables/datatables.css
@@ -98,9 +98,9 @@ table.dataTable thead > tr > td:active {
   outline: none;
 }

-div.dataTables_scrollBody table.dataTable thead > tr > th:before, div.dataTables_scrollBody table.dataTable thead > tr > th:after,
-div.dataTables_scrollBody table.dataTable thead > tr > td:before,
-div.dataTables_scrollBody table.dataTable thead > tr > td:after {
+div.dataTables_scrollBody > table.dataTable > thead > tr > th:before, div.dataTables_scrollBody > table.dataTable > thead > tr > th:after,
+div.dataTables_scrollBody > table.dataTable > thead > tr > td:before,
+div.dataTables_scrollBody > table.dataTable > thead > tr > td:after {
   display: none;
 }

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Excellent point - thanks for letting me know about that and the fix as well! Fix is now committed here and will be in the next release of DataTables, which I don't expect to be too far away.

    Allan

Sign In or Register to comment.