Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8008535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:10:04+00:00 2026-06-04T18:10:04+00:00

Ok I am finding a problem when loading datatables on a table that’s in

  • 0

Ok I am finding a problem when loading datatables on a table that’s in a hidden element on my page. What I have are a handful of pages that are “Tab” based, where the only thing visible at the time is the active tab, while all the other tabs at the time til activated are display:none. When I manually invoke a tab to be the primary tab there is no issue with the table or its columns. Its only when the tabs are initially hidden the problem with the initial display of the table is a problem.

I say initial display because when I click on a column header to sort a given column the table seems to correct itself and the columns no longer squeeze/condense together.

This is my current datatable code

$('#'+tableID).dataTable(
{
    "sPaginationType": "full_numbers",
    "bPaginate": false,
    "bFilter": false,
    "bAutoWidth": true,
    "sScrollY": tableY+"px",
    "bScrollCollapse": true,
    "oLanguage": {
        "sInfo": "Showing _END_ Events."
    },
    "aaSorting": [[ 1, "asc" ]],
    "aoColumns": [
         null,
         null
       ]
});

and I have tried to specify column widths like:

"aoColumns": [
         { "sWidth": "80%" },
         { "sWidth": "20%" }
       ]

which also doesn’t work. So I am stuck at the moment, trying to resolve this issue but not really sure where/how to begin.

Also for the sake of argument lets say my table structure resembles..

<table>
   <thead>
     <tr><td></td><td></td></tr>
   </thead>
   <tfoot>
     <tr><td></td><td></td></tr>
   </tfoot>
   <tbody>
     <tr><td></td><td></td></tr>
     <tr><td></td><td></td></tr>
     <tr><td></td><td></td></tr>
   </tbody>
</table>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:10:05+00:00Added an answer on June 4, 2026 at 6:10 pm

    I ended up solving my own issue through my searches, and based off an example given on the API docs related to datatables/jquery ui.

    My solution was to bind to the tab event of jquery ui, then fire off my function to build the table I needed base on what tab was selected.

    $(document).ready(function() {
        $("#storage").bind('tabsselect', function(event, ui)
        {
            if (ui.index === 1)
            {
                tables.statistics("metrics", "metric");
            }
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem finding elements in XPath that's contains a certain string ignoring
Problem Scripts on some pages that use jquery are not activating. Scenario Finding that
I have a problem finding references to this subject and would appreciate some help.
I have no problem finding all tags for an object and getting the count
I have trouble finding a solution for the following problem: I have a lot
I'm not finding any question specifically with the odd problem I have. Basically I've
I have a major problem finding a way to add a space between two
I have a problem finding a way to loop my animation with raphaeljs. I
I have a problem finding the right wildcard pattern to extract parts of my
We have a serious problem to tackle here. We are loading pdf documents as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.