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

  • Home
  • SEARCH
  • 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 4582050
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:01:07+00:00 2026-05-21T21:01:07+00:00

I am using jQuery datatables in a asp mvc application, and I want to

  • 0

I am using jQuery datatables in a asp mvc application, and I want to put titles as shown below.

Note: the titles were put using paint 🙂

enter image description here

Here is my code:

    <script type="text/javascript">

    var vouchers;

    $(document).ready(function() {

        /* Init the table*/
        $("#vouchers").dataTable({
            "bRetrieve": true,
            "bFilter": false,
            "bSortClasses": false,
            "bLengthChange": false,
            "bPaginate": true,
            "bInfo": false,
            "bJQueryUI": true,
            "bAutoWidth": true,
            "aaSorting": [[2, "desc"]],
            "aoColumns": [
            { "bSortable": true },
            { "bSortable": true },
            { "bSortable": true },
            { "bSortable": true },
            { "bSortable": true },
            { "bSortable": true },
            { "bSortable": true },
            { "bSortable": true}]
        });

        vouchers.fnDraw();
    });
</script>

Thank You

  • 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-05-21T21:01:08+00:00Added an answer on May 21, 2026 at 9:01 pm

    You can use the info feature to put the name of your table like this :
    enter image description here

    Configure dataTables with “bInfo” = true, “sDom” will create your css class “Header” and position your info(the “i” after “header”) and “oLanguage” will define what’s the text you want in info. You just need to style your “header” class in your CSS like your table header and everything will be fine.

    $(document).ready(function() {
        $("#vouchers %>").dataTable({
                "binfo": true,
                "sDom": '<"header"i>t<"Footer">',
                "oLanguage": {
                    "sInfo": "Charges list"
                }
            });
        });  
    

    For the “Totals” at the end, is it calculation total or a total row number?

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

Sidebar

Related Questions

I am using jquery datatables serverside in my MVC application. When I put a
I want to deserialize the JSON string below, using jQuery each function, but the
I am using jQuery DataTables . I want to remove the search bar and
Problem: jQuery DataTables server-side processing using ASP.NET WebForms. Solution: Darin Dimitrov answered the question
I am using the DataTables jQuery plugin. The way I want my tables to
Using jQuery, how do you bind a click event to a table cell (below,
I'm using jQuery and SimpleModal in an ASP.Net project to make some nice dialogs
If you are using ASP.NET MVC how are you doing grid display? Rolled your
I am currently implementing a client-side paging solution using ASP.NET, jQuery and JSON. I
I'm using JQuery Datatables and i'm wondering, for efficiency sake, if I should initialize

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.