Column grouping and dynamical column hiding don't get along
Column grouping and dynamical column hiding don't get along
dbuezas
Posts: 6Questions: 0Answers: 0
Hi team! The library is terrific!
When I try to "Show and hide columns dynamically" in a table which has "Column grouping through col/row spans" I get the error:
Node was not found" code: "8
The bug can be reproduced by executing this:
[code] $('#example').dataTable().oTable.fnSetColumnVis( 1,false ); [/code]
(for example by adding a watch in firebug)
in:
"Column grouping through col/row spans" example
Thanks a lot for your work, you make mine easier! :)
When I try to "Show and hide columns dynamically" in a table which has "Column grouping through col/row spans" I get the error:
Node was not found" code: "8
The bug can be reproduced by executing this:
[code] $('#example').dataTable().oTable.fnSetColumnVis( 1,false ); [/code]
(for example by adding a watch in firebug)
in:
"Column grouping through col/row spans" example
Thanks a lot for your work, you make mine easier! :)
This discussion has been closed.
Replies
Regards,
Allan
One single question that I think is related:
I wanted a table in which the first row is the classification of the second row cells, something conceptually equivalent to:
[code]
|-------|-------------------|----------------------|
| (*) | Description | Name |
|-------|-------------------|----------------------|
| ID | Height | Weight | First | Last |
|=======|=========|=========|======================|
| 1 | 1.76cm | 75Kg | David | Buezas |
| 2 | 1.86cm | 70Kg | Albert | Heinz |
| ... | ... | ... | ... | ... |
|-------|-------------------|----------------------|
[/code]
And I was able to do it, but in a somehow nasty way, I used inside the (instead of ) in the first row:
[code]
Description
Name
ID
Height
Weight
First
Last
[/code]
That way everything works as expected when hiding columns and it is the ID cell that gets the sorting functionality and look and not the (*)-marked cell.
Is there a better way to do it? I am wondering if my workaround is going to work well in every scenario.
Thanks,
David
Allan
Thanks!!!