i am using multiple Datatables in single page but not working responsive

i am using multiple Datatables in single page but not working responsive

ShivuShivu Posts: 2Questions: 2Answers: 0
edited March 2020 in Free community support

hello guys
i am using multiple datatables but not working responsive
below script i used but its not working

$("a[data-toggle=\"tab\"]").on("shown.bs.tab", function (e) {
  console.log( 'show tab' );

    $.fn.dataTable.tables( {visible: true, api: true} ).columns.adjust();
  
});

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • kthorngrenkthorngren Posts: 20,147Questions: 26Answers: 4,736

    If you are using the Responsive extension you may also need to use responsive.recalc().

    Kevin

This discussion has been closed.