Complex header question
Complex header question
CowsSayMoo
Posts: 2Questions: 0Answers: 0
I am attempting to use the example found here: https://datatables.net/release-datatables/examples/basic_init/complex_header.html
The problem I am running into is that I want more than 2 columns before my colspan'd columns. My code looks like this
[code]
Column 1
Column 2
Column 3
Column 4
Column 5
ColSpan Column 6
Avg
Min
Max
[/code]
This should present a table with "Avg" "Min" and "Max" under the "ColSpan Column 6" header. Unfortunately, it throws a javascript error instead.
[code]
Error: TypeError: aLayout[(i + k)] is undefined
Source File: jquery.dataTables.js
Line: 1831
[/code]
I really want to be able to use multiple ColSpan groupings on the same table, but I can't even get one working when I have more than two rowspan columns. Am I doing something wrong?
The problem I am running into is that I want more than 2 columns before my colspan'd columns. My code looks like this
[code]
Column 1
Column 2
Column 3
Column 4
Column 5
ColSpan Column 6
Avg
Min
Max
[/code]
This should present a table with "Avg" "Min" and "Max" under the "ColSpan Column 6" header. Unfortunately, it throws a javascript error instead.
[code]
Error: TypeError: aLayout[(i + k)] is undefined
Source File: jquery.dataTables.js
Line: 1831
[/code]
I really want to be able to use multiple ColSpan groupings on the same table, but I can't even get one working when I have more than two rowspan columns. Am I doing something wrong?
This discussion has been closed.
Replies
I do want to relax this constraint, but it will make sorting not possible on any but the first column in the colspan section. Not sure when I'll get a chance to implement this though I'm afraid.
Allan
Allan