ColVis and aiExclude

ColVis and aiExclude

pfistapfista Posts: 5Questions: 0Answers: 0
edited July 2011 in Bug reports
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

Replies

  • jayalfredprufrockjayalfredprufrock Posts: 5Questions: 0Answers: 0
    I've run into a bug with the latest datatables package which I think might be related to the above. The firebug error reads as follows:

    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!
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Thanks for flagging this up! I've just committed a fix for this which is available as the 1.0.6 development nightly for ColVis ( http://datatables.net/download ).

    Regards,
    Allan
  • bmisr02bmisr02 Posts: 2Questions: 0Answers: 0
    edited July 2011
    (moved to new discussion)
  • jasperjasper Posts: 1Questions: 0Answers: 0
    Bugfix from nightly works, but seems to disable the aiExclude functionality.
    Any suggestions?

    Thx
    Jasper
This discussion has been closed.