Bug in DT 1.8beta

Bug in DT 1.8beta

UPEngineerUPEngineer Posts: 93Questions: 0Answers: 1
edited May 2011 in Bug reports
Allan,

Not sure if this has been discussed yet. I know I brought it up before you release the 1.8 beta.

It appears the DataTables_sort_wrapper is broken (at least for me). The sort icons do not show up unless I enable bSortClasses:true.

I do not need the Sort Classes enabled to help speed things up.

Is this the normal behaviour or a possible oversight?

Version 1.7.6 works.
Version 1.8beta 1 is broken.

I ahven't tried beta 2 yet.

Thanks,
Scott

Replies

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin
    It seems to work okay for me if I do this:

    [code]
    $(document).ready(function() {
    oTable = $('#example').dataTable({
    "bJQueryUI": true,
    "sPaginationType": "full_numbers",
    "bSortClasses": false
    });
    } );
    [/code]
    Can you post a link to your example which doesn't work and I'll see if I can get a fix in for the next beta (which I hope to get out soon).

    Allan
  • UPEngineerUPEngineer Posts: 93Questions: 0Answers: 1
    Allan,

    I narrowed it down.

    If bSortClasses are set to false and bDeferRender is set to true, then the sort icons are not displayed (at least in my testing so far.)

    Scott
  • UPEngineerUPEngineer Posts: 93Questions: 0Answers: 1
    As more info Allan.

    When bDeferRender is set to true is adds span class Datatables_sort_icon.

    However, when bDeferRender is set to false, it adds span class Datatables_sort_icon but it also adds css_right ui-icon ui-icon-carat-2-n-s to it as well.

    Is this the normal behaviour or is DT not picking something up?

    Scott
  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin
    Thanks for the extra info. You are quite right - there was a bug in the 1.8 beta 1 release which resulted in this behaviour. I've just committed a fix, and you can grab it in the latest nightly - or the next beta which should be fairly soon.

    Allan
  • UPEngineerUPEngineer Posts: 93Questions: 0Answers: 1
    That did the trick. Thanks Allan.
This discussion has been closed.