DataTables 1.7 beta 7 released

DataTables 1.7 beta 7 released

allanallan Posts: 63,489Questions: 1Answers: 10,468 Site admin
edited July 2010 in Announcements
Hello all,

One more beta before the stable 1.7.0 is released (I hope - please say if you find any bugs!). This is a little bit of a code tidy up, with a couple of little bug fixes included. I don't believe that any new bugs have been introduced, but it is always good to sanity check before making a stable release! If nothing comes to light in the next few days, this release will be progressed to 1.7.0 stable.

As per usual:
Full release notes: http://datatables.net/download .
Download 1.7 beta 7 directly: http://datatables.net/releases/dataTables-1.7.beta.7.zip
Please donate to help keep DataTables under active development: http://datatables.net/donate :-)

Regards,
Allan

Replies

  • iuliandumiuliandum Posts: 70Questions: 0Answers: 0
    Hi Allan,

    the first bug is this:

    In Show and hide columns dynamically example you try to click on Toggle column 1, then Toggle column 2 and then Toggle column 3. And then you obtain this (only in IE 8.0, not in compatible IE 7.0):

    http://i.imgur.com/ba5F3.jpg
  • allanallan Posts: 63,489Questions: 1Answers: 10,468 Site admin
    Very good call iuliandum!

    The fix - change:

    [code]
    nThs[i].style.width = o.aoColumns[i].sWidth;
    [/code]
    to

    [code]
    iVis = _fnVisibleToColumnIndex( o, i );
    nThs[i].style.width = o.aoColumns[iVis].sWidth;
    [/code]
    I'll release a new beta with this shortly.

    Regards,
    Allan
  • dwaddelldwaddell Posts: 22Questions: 0Answers: 0
    Hi Allan,

    I found a resizing of the browser issue that probably has to do with the new scrolling feature. It appears the headers do not get re-sized proportionately when the table is built to 100% of an area then the area size changes because of the browser. The cell sizes are recalculated but the header cells are not. Here are a couple pics:

    Browser full screen:
    http://i.imgur.com/C986a.jpg

    Browser restored down:
    http://i.imgur.com/gZpka.jpg

    Not really that big of an issue but I thought you may want to know.
  • allanallan Posts: 63,489Questions: 1Answers: 10,468 Site admin
    Hi dwaddell,

    The way to address this is to call the fnAdjustColumnSizing() API function, which will re-calculate the table's column sizes based on the new window sizing. Possibly the best/easiest way of doing this is attaching a 'resize' event to 'window' which will call that function.

    I didn't want to do that automatically as it can be a fairly expensive process in terms of computing power when using many tables - but it might be something that I do add in if it crops up often enough!

    Regards,
    Allan
  • dwaddelldwaddell Posts: 22Questions: 0Answers: 0
    Thanks Allan, still learning all the different functions. I missed that one for whatever reason.
  • allanallan Posts: 63,489Questions: 1Answers: 10,468 Site admin
    It's not really documented on this site yet. The main documentation refers only to the current stable release (1.6.2) - and this is a new method to 1.7. The docs will be updated when 1.7.0 is released :-)

    Until then, this is probably the best source of information for what is new in 1.7: http://datatables.net/new/1.7 . There is also a bit of upgrade information available: http://datatables.net/upgrade/1.7

    Regards,
    Allan
  • allanallan Posts: 63,489Questions: 1Answers: 10,468 Site admin
    Update - 1.7 beta 8 now available: http://datatables.net/forums/comments.php?DiscussionID=2412

    Allan
This discussion has been closed.