Multiple TH in rows?
Multiple TH in rows?
Hi,
I am currently trying to embed datatables in a BIRT report viewer. The result is already awesome, complex headers are perfectly processed! I encounter an issue with tables wich have multiple 'TH' in rows. For example BIRT generates this kind of markup, if we have two dimensions in rows in a crosstable:
[code]
LIVRAISONS
Article
Total
Customer 1
13 déc. 2011
12
12
Customer 2
15 déc. 2011
15
12
Grand Total
256
256
[/code]
When i invoke dataTables i get: [quote] Uncaught TypeError: Cannot call method 'fnSetData' of undefined [/quote]
If i remove the second TH on each row it works. Is it known issue? Any possible workaround? Thanks!
I am currently trying to embed datatables in a BIRT report viewer. The result is already awesome, complex headers are perfectly processed! I encounter an issue with tables wich have multiple 'TH' in rows. For example BIRT generates this kind of markup, if we have two dimensions in rows in a crosstable:
[code]
LIVRAISONS
Article
Total
Customer 1
13 déc. 2011
12
12
Customer 2
15 déc. 2011
15
12
Grand Total
256
256
[/code]
When i invoke dataTables i get: [quote] Uncaught TypeError: Cannot call method 'fnSetData' of undefined [/quote]
If i remove the second TH on each row it works. Is it known issue? Any possible workaround? Thanks!
This discussion has been closed.
Replies
[quote] Uncaught TypeError: Cannot read property 'style' of undefined [/quote]
on the line:
[quote]
else if ( oColumn.bVisible )
{
nThs[i-iCorrector].style.width = "";
}
[/quote]
It does not look so bad since all features work as expected. I should be able to post a live demo link soonly if some people are interested, the combo BIRT+Datatables is amazing!
> the combo BIRT+Datatables is amazing!
Awesome :-)
Allan