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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:38:39+00:00 2026-06-14T05:38:39+00:00

Ok I am using DataTables from Datatables.net I have one table that seems to

  • 0

Ok I am using DataTables from Datatables.net
I have one table that seems to be suffering a sort issue. Currently “aoColumns” is set up like

null,
{"iDataSort": 2, "bSortable": true},
{"bVisible": true, "sType": "num"},
{"iDataSort": 4, "bSortable": true},
{"bVisible": true, "sType": "num"}

What it is is 5 columns 2 of which are hidden so..
0 is the column with the inital sort issue that sparked this post.
1 is supposed to be display purpose only
2 is hidden and is supposed to act as the sort for 1
3 is supposed to be display purpose only
4 is hidden and supposed to act as the sort for 3

I need the first column to recognize as html so it strips out the HTML as it has links in it, currently its set to null and the problem with this is it breaks the sorting in Chrome.

I have tried to make it like

{"sType": "html", "bSortable": true},
{"iDataSort": 2, "bSortable": true},
{"bVisible": true, "sType": "num"},
{"iDataSort": 4, "bSortable": true},
{"bVisible": true, "sType": "num"}

Which breaks the table itself.

First I tried

{ "sType": "html", "bSortable": true},
{ "sType": "num", "bSortable": true},
{ "sType": "num", "bSortable": true}

(before I realized I had 2 hidden columns) Which this worked but broke the table layout physically. So now Im stuck trying to go from a to b keeping all 5 columns the 3 displayed, and the 2 hidden and failing

  • 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-14T05:38:40+00:00Added an answer on June 14, 2026 at 5:38 am

    Try this:

    aoColumns: [
       {"sType": "html", "bSortable": true},
       {"iDataSort": 2, "bSortable": true, "bUseRendered":false},
       {"bVisible": true, "sType": "numeric"},
       {"iDataSort": 4, "bSortable": true, "bUseRendered":false},
       {"bVisible": true, "sType": "numeric"}
    ]
    

    I had to do this with a column that rendered images instead of the values and then created a hidden column which had the actual values to sort on.

    I hope this helps

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

Sidebar

Related Questions

Using a data table from http://datatables.net/ , How can i stop it from overflowing
Using .Net and Oracle 11g - I've been returning dataTables from a procedure inside
I have DataGridView and I set DataSource of datagridview by using DataTables. DataTable dt
I'm using DataTables ( datatables.net ) to display data from an Ajax source and
I'm just getting started using ADO.NET and DataSets and DataTables. One problem I'm having
Parsing some data and inserting it into 3 tables from .NET. Using Table Valued
I am using C# and .NET 3.5 and have a GridView that I am
Using .NET 1.1, I have a DataGrid that contains three columns for each row.
I'm using DataTables plugin from http://datatables.net . The plugin it self is very useful,but
I have a ASP.NET webform that, aside from other controls, has a textbox for

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.