ColReorder, ColVis and FixedColumns updates

ColReorder, ColVis and FixedColumns updates

allanallan Posts: 54,680Questions: 1Answers: 8,552 Site admin
edited June 2011 in Announcements
Hello all,

Along side the DataTables 1.8.1 release today I've also updated the ColReorder, ColVis and FixedColumns extras for DataTables to take advantage of the new features in DataTables 1.8 and also fix a few compatibility issues and outstanding bugs.

ColReorder 1.0.3: http://datatables.net/releases/ColReorder-1.0.3.zip
The ColReorder release is small maintenance release which brings this plug-in up to par with support for the new features in DataTables 1.8. This new release requires DataTables 1.8+ due to the handling of data, and as a few fixes in it.

ColVis 1.0.5: http://datatables.net/releases/ColVis-1.0.5.zip
New features include the ability to customise the labels used for the buttons through the use of a callback function (fnLabel), automatic sizing of the buttons for the list (rather than hardcoding CSS) and the ability to control the animation duration for the display of the button (iOverlay). Fixes include compatibility with Query 1.6+.

FixedColumns 2.0.1: http://datatables.net/releases/ColReorder-1.0.2.zip
New features include a new API method fnRedrawLayout which will redraw the 3x3 grid that FixedColumns uses based on current sizing information. Also the FixedColumns instance is now attached to the DataTables settings object as the property "oFixedColumns" to allow easy access if initialised with sDom in DataTables. There are also a number of new examples. Bug fixes include updates for jQuery UI themes and support for server-side processing in DataTables.

Full release notes are available on the downloads page ( http://datatables.net/download ) along with the individual Javascript files if you on'y want them. Documentation for each of these extras has been updated for the new versions.

If you find any issues with any of these releases please open a new thread in the forum so we can keep track of individual issues.

Enjoy!
Allan

Replies

  • RockbRockb Posts: 97Questions: 0Answers: 0
    Here
    http://www.datatables.net/release-datatables/extras/ColVis/exclude_columns.html
    and in my website

    the "aiExclude" doesn't work proper...
  • mr_perplexedmr_perplexed Posts: 3Questions: 0Answers: 0
    edited June 2011
    Hi, the iOverlay option name is inconsistent between the docs and the code. In the docs (and in your post here) it's referred to as iOverlay, but in the code (line 146 of colVis.js v1.0.5) it's iOverlayFade. I just spent 10 minutes wondering why it wasn't working before diving into the code to check!

    Can you update the docs please with the correct option name - iOverlayFade (which is a more descriptive name than just 'iOverlay')
  • allanallan Posts: 54,680Questions: 1Answers: 8,552 Site admin
    Sorry about that! Documentation now updated :-). Longer term I'll be moving all API documentation to an automated system like I've used for FixedColumns ( http://datatables.net/docs/FixedColumns ) so this kind of thing won't happen.

    Thanks for pointing this one out!

    Regards,
    Allan
  • RockbRockb Posts: 97Questions: 0Answers: 0
    Something new about the aiExclude-Problem?

    http://www.datatables.net/forums/discussion/comment/22423#Comment_22423
  • rmclean2krmclean2k Posts: 2Questions: 0Answers: 0
    Thanks Allan for a great product! I'm having an issue with ColVis though. I noticed that when there is a submit function combined with oColVis aiExclude, that clicking on the Show / Hide Columns button causes a submit and that the menu for columns never appears. It seems like the example on your site is acting similarly as well. Any ideas?

    Thanks in advance for your help.
  • RockbRockb Posts: 97Questions: 0Answers: 0
    @rmclean2k That's exactly the issue I've already mentioned :-D
  • allanallan Posts: 54,680Questions: 1Answers: 8,552 Site admin
    @Rockb, @rmclean2k - Sorry about that! There was an error in the new button sizing code, in that it wasn't taking account of possible null references caused by those features. I've just committed a change to ColVis which is available in the 1.0.6 development nightly ( http://datatables.net/download ). If you could give it a go and let me know how it works out for you, that would be great!

    Regards,
    Allan
  • RockbRockb Posts: 97Questions: 0Answers: 0
    Thx for updating it... Due to a first test, everything works again. :-)
  • rmclean2krmclean2k Posts: 2Questions: 0Answers: 0
    Allan - That appears to have fixed the problem! I'll keep working with this latest version and let you know if I see any other problems. Thanks for your quick response.
  • allanallan Posts: 54,680Questions: 1Answers: 8,552 Site admin
    Ace - thanks for the feedback :-)

    Allan
  • tedkalawtedkalaw Posts: 12Questions: 0Answers: 0
    Allan,

    The link to FixedColumns 2.0.1 points to ColReorder-1.0.2.zip ;)
  • allanallan Posts: 54,680Questions: 1Answers: 8,552 Site admin
    A daft question - but which page is that one? I don't see it on the extras or downloads page, although I could be missing something...!

    Allan
  • steve_at_ventussteve_at_ventus Posts: 18Questions: 5Answers: 0
    He meant in this post, Allan!

    Also, I am having problems with "aiExclude" with 1.0.6 dev nightly. Even on your example page http://datatables.net/release-datatables/extras/ColVis/exclude_columns.html clicking the show/hide button seems to fail (FF6 beta, Chrome stable, Chrome Canary) - it adds the example_length para, to the location - http://datatables.net/release-datatables/extras/ColVis/exclude_columns.html?example_length=10.

    Thanks Allan,

    -steve
  • steve_at_ventussteve_at_ventus Posts: 18Questions: 5Answers: 0
    Sorry, read closer and saw that rmclean2k pointed out the issue with your example already. My issue is that dataTables seems to ignore my aiExclude array (my elements are defined as an aoColumns array, if that matters - using sTitle, mDataProp, and some fnRender - without s in the markup). Any thoughts?
  • steve_at_ventussteve_at_ventus Posts: 18Questions: 5Answers: 0
    Sorry for the spam, but it seems like its ignoring the whole "oColVis" object - "bRestore": true also seems to have no effect.
  • allanallan Posts: 54,680Questions: 1Answers: 8,552 Site admin
    Its ignoring all of "oColVis"!? Can you link us to your example please?

    Thanks,
    Allan
  • steve_at_ventussteve_at_ventus Posts: 18Questions: 5Answers: 0
    emailing constructor (it's gotten big)
  • steve_at_ventussteve_at_ventus Posts: 18Questions: 5Answers: 0
    actually, i don't think i have your address. thanks.
  • RockbRockb Posts: 97Questions: 0Answers: 0
    @steve_at_ventus HOW about editing your post instead of spamming this forum and my e-mail box with notification. Thx!
This discussion has been closed.