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 8594747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:16:12+00:00 2026-06-12T00:16:12+00:00

I am new to the DataTables plugin, How does it determine the number of

  • 0

I am new to the DataTables plugin,
How does it determine the number of columns to display?
Based on the HTML table? or based on the DataSource?
Or is it some combination of the two ?

Can I have columns in the DataSource that are not rendered as columns?
(but are used for example as a tooltip on another column) ?

  • 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-12T00:16:13+00:00Added an answer on June 12, 2026 at 12:16 am

    How does it determine the number of columns to display?

    The answer really depends on how you configure your table (keep reading to see what I mean).

    Based on the HTML table? or based on the DataSource? Or is it some combination of the two ?

    If you create a DOM based HTML table with all of your data already in it, then you can see from the zero configuration example that it will just display all of your columns that are provided.

    Can I have columns in the DataSource that are not rendered as columns? (but are used for example as a tooltip on another column) ?

    You can further configure the table to hide certain columns using the bVisible parameter in the aoColumnDefs or aoColumns settings for the table configuration. See this example for how to hide columns.

    You can then use mrender to render a column in a particular way.

    Say your data had two columns, ID and Name and you wanted to have Name be displayed but only show the ID as a tooltip when the user mouses over the Name cell. In your aoColumns object, set bVisible to false for the ID column and set mrender for the Name column as follows:

    "mrender": function(data, type, full) {
        return '<span title="' + full.ID + '">' + data + '</span>';
    }
    

    Note that if you’re using a data source other than the data embedded in the DOM at load (such as AJAX) you’re going to probably want to also specify the mdata parameter for each aoColumns definition, as can be seen in this example.

    Best of luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two DataTables. First is DataTable NameAddressPhones = new DataTable(); with Three columns
I'm pretty new to JQuery Datatables, I'm attempting to retrieve two information about the
I heard that microsoft does not recommend using DataSets and DataTables in new projects.
I'm using the jquery datatables plugin and I have two links in the first
I have two DataTables. I want to do inner join them into a new
are there any way to add new column to the table with JQuery plugin
I am new to Jquery Datatables. I have managed to create a table and
I am using the JQuery Datatables plugin in an ASP.NET MVC project to display
I am trying to use jquery DataTables plugin to display details from my db
I'm using the jQuery DataTables plugin to display data being returned from an AJAX

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.