ColVis and aiExclude
ColVis and aiExclude
pfista
Posts: 5Questions: 0Answers: 0
I ran into an error using ColVis with aiExclude. I also am using themeroller so bJQueryUI is set to true.
When clicking on the colvis button, this error occurs:
[code]Uncaught TypeError: Cannot read property 'style' of null ColVis.js:698[/code]
To fix this problem, I added some if statements into ColVis.js (the lines that are commented out)
[code]
/* Resize the buttons */
if ( this.s.sSize == "auto" )
{
var aiSizes = [];
this.dom.collection.style.width = "auto";
for ( i=0, iLen=this.dom.buttons.length ; i
When clicking on the colvis button, this error occurs:
[code]Uncaught TypeError: Cannot read property 'style' of null ColVis.js:698[/code]
To fix this problem, I added some if statements into ColVis.js (the lines that are commented out)
[code]
/* Resize the buttons */
if ( this.s.sSize == "auto" )
{
var aiSizes = [];
this.dom.collection.style.width = "auto";
for ( i=0, iLen=this.dom.buttons.length ; i
This discussion has been closed.
Replies
this.dom.buttons[b] is null (line 30 of ColVis.min.js)
The example at http://www.datatables.net/release-datatables/extras/ColVis/exclude_columns.html appears to be suffering from the same problem, at least in the modern browsers I've tested.
Thanks Allan for all your hard work!
Regards,
Allan
Any suggestions?
Thx
Jasper