Error if more than one row of elements inside tag
Error if more than one row of elements inside tag
norberto.ostallo
Posts: 4Questions: 0Answers: 0
I've found a problem using DataTables. I'm using version 1.7 beta 5, but I had the same issue with v.1.6.2 and v.1.7 beta 3. I try to describe it here below.
Everything works fine in my table if I have only one row containing elements in the tag, but if I add a second row of elements (two tags inside the containing both elements) the javascript breaks reporting "a.aoColumns[b] is undefined" at line 2760:
[code]
oSettings.aoColumns[i].nTf = nTfs[i-iCorrector];
[/code]
Is this a known issue? Does DataTables have a limit of only one row of elements in a tag?
Everything works fine in my table if I have only one row containing elements in the tag, but if I add a second row of elements (two tags inside the containing both elements) the javascript breaks reporting "a.aoColumns[b] is undefined" at line 2760:
[code]
oSettings.aoColumns[i].nTf = nTfs[i-iCorrector];
[/code]
Is this a known issue? Does DataTables have a limit of only one row of elements in a tag?
This discussion has been closed.
Replies
Thanks for the information on this. The support that DataTables has for multiple rows in the header and the footer is fairly limited (in part because it would add a lot of code to support something which isn't used all that often). The key part where this is not supported in DataTables is in hidden columns.
Having said that, I believe it is wrong for DataTables to be breaking like this here, and I've just put a fix in for this to my development version of DataTables. This is going to shortly be released as 1.7 beta 6. It would be a great if you could give it a go and say if works for you :-)
Regards,
Allan
Thank you, you're doing a great job with datatables
Regards,
Allan
By ignoring all the lines following the fist row it results than only the first one is properly decorated (CSS/jquety ui theme applied) and all the other have no theme.
Regards,
Allan