TableTools not working for Multiple table initialisation when embedded in jQuer UI Tabs or Accordion

TableTools not working for Multiple table initialisation when embedded in jQuer UI Tabs or Accordion

GustGust Posts: 17Questions: 0Answers: 0
edited August 2011 in TableTools
In case of multiple tables initialisation when the datatables are embedded in jQuer UI Tabs or Accordion TableTools button only work properly for one table...

This issue is there for some times...

I am trying to merge all the related threads concerning the stated issue that I found :

http://datatables.net/forums/discussion/4449/table-tools-2.0.1-multiple-tables-with-each-table-inside-a-tab/p1

http://www.datatables.net/forums/discussion/4980/reinitializing-the-same-datatables-in-2-tabs-using-jquery-ui-tabs/p1

http://www.datatables.net/forums/discussion/3963/tabletools-on-multiple-tables/p1

cschweda report he works around it, but I can't figure out how he made it...

ColdFFF also point rloader... Not sure if he get it to work properly...

Help would be appreciate...

Gust

Replies

  • GustGust Posts: 17Questions: 0Answers: 0
    Is this init method a possible solution ??

    http://www.datatables.net/release-datatables/extras/TableTools/alt_init.html

    Gust
  • amurdockamurdock Posts: 10Questions: 0Answers: 0
    This works for me...
    [code]
    $(document).ready(function(){
    var oTable = $('.datatable').dataTable(tableLayout);
    });
    [/code]

    And then add the tabs in the window ready function.

    [code]
    $(window).ready(function(){
    $(".tabs").tabs();
    });
    [/code]
This discussion has been closed.