server-side, th colspan > 1, added data...not match # of cols
server-side, th colspan > 1, added data...not match # of cols
Using the server-side approach to fill the datatable,
I attempted to add a few to the .
Datatables came back with a warning: "Datatables warning (table id = "table-one"): Added data (size 10) does
not match known number of columns (8).
[code]
Head 1
Head 2
Head 3
Head 4
Head 5
Head 6
Head 7
Head 8
Loading data...
[/code]
Perhaps the forum or the documentation already contains a suitable answer,
but I failed to find it.
As a work-around, I've added a hidden to
the end of the table for each additional colspan.
It's important to place the hidden elements
at the end, so as to prevent any other column headers
look empty. Another drawback to this approach, which
I have to investigate further, is having to account
correctly for the column being sorted or searched:
sSearch_0, sSearch_1, etc. and other such
variables.
[code]
Head 1
Head 2
Head 3
Head 4
Head 5
Head 6
Head 7
Head 8
Loading data...
[/code]
It's kludgy, but I think it will fly.
If someone can point me in a better direction, though,
that would also be nice.
I attempted to add a few to the .
Datatables came back with a warning: "Datatables warning (table id = "table-one"): Added data (size 10) does
not match known number of columns (8).
[code]
Head 1
Head 2
Head 3
Head 4
Head 5
Head 6
Head 7
Head 8
Loading data...
[/code]
Perhaps the forum or the documentation already contains a suitable answer,
but I failed to find it.
As a work-around, I've added a hidden to
the end of the table for each additional colspan.
It's important to place the hidden elements
at the end, so as to prevent any other column headers
look empty. Another drawback to this approach, which
I have to investigate further, is having to account
correctly for the column being sorted or searched:
sSearch_0, sSearch_1, etc. and other such
variables.
[code]
Head 1
Head 2
Head 3
Head 4
Head 5
Head 6
Head 7
Head 8
Loading data...
[/code]
It's kludgy, but I think it will fly.
If someone can point me in a better direction, though,
that would also be nice.
This discussion has been closed.
Replies
Allan