You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let me start to say I really appreciate this project.
I have one problem that I am trying to fix, but I think this will affect other users as well.
I have a hidden column in my column definitions (bVisible: false). The first one actually (column ID 0). Datatables does not create a for a hidden column. But your logic to detect which column has the expand button uses a jQuery call:
after the _each on line 164. This fixes the incorrect expand column.
But then the detection of which columns should be hidden and shown still fails and the column to the right of the one that should be hidden is hidden (because of the difference between th:eq(0) and column with ID 0.
Do you agree it would be best to use fnSettings().aoColumns instead of the (incomplete) $('th') in your code?
The text was updated successfully, but these errors were encountered:
Let me start to say I really appreciate this project.
I have one problem that I am trying to fix, but I think this will affect other users as well.
I have a hidden column in my column definitions (bVisible: false). The first one actually (column ID 0). Datatables does not create a for a hidden column. But your logic to detect which column has the expand button uses a jQuery call:
Which does not take the hidden columns into account.
This can be solved by changing this line to:
and an
after the _each on line 164. This fixes the incorrect expand column.
But then the detection of which columns should be hidden and shown still fails and the column to the right of the one that should be hidden is hidden (because of the difference between th:eq(0) and column with ID 0.
Do you agree it would be best to use fnSettings().aoColumns instead of the (incomplete) $('th') in your code?
The text was updated successfully, but these errors were encountered: