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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:35:57+00:00 2026-06-18T16:35:57+00:00

I have a datatable that I’m using in server-side mode to retrieve data via

  • 0

I have a datatable that I’m using in server-side mode to retrieve data via AJAX. On the surface everything appears correct however, when I load the page I get “No Matching Records Found” displayed instead of the data displaying. The peculiar part is that it says it is showing the records “Showing records 1 to 2 of 2 entries”.

The table HTML and JS is as follows:

<div class="container">
        <script type="text/javascript">
$(document).ready(function() {
    $("#freebieslist").dataTable({
        "bServerSide": true,
        "sAjaxSource": "/config/getadvertisers",
        "bPaginate": true,
        "bProcessing": true,
        "bFilter" : true,
        "sPaginationType" : "bootstrap",
        "sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>"
    });

    $.extend( $.fn.dataTableExt.oStdClasses, {
        "sWrapper": "dataTables_wrapper form-inline"
    } );
});

</script>

<div class="row"><h1 class="pull-left">Advertisers</h1><div class="pull-right" style="margin-top:15px;"><a href="/config/addadvertiser" class="btn btn-primary">Add New</a>&nbsp;&nbsp;&nbsp;<a href="/config/delete" class="btn btn-danger">Delete</a></div>    </div>
<div class="row">
<div class="span12">
    <table id="freebieslist" class="table table-bordered table-striped table-hover">
        <thead>
            <tr>
                <th class="span1">&nbsp;</th><th>Advertiser</th>
            </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
</div>
</div>        </div>

The JSON being loaded is this:

{
    "sEcho": "1",
    "iTotalRecords": "2",
    "iTotalDisplayRecords": "2",
    "aaData": [
        [
            "2",
            "Test2"
        ],
        [
            "1",
            "Tester"
        ]
    ]
}

How to fix this so it actually displays the returned rows?

  • 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-18T16:35:58+00:00Added an answer on June 18, 2026 at 4:35 pm

    I solved the issue by using datatables debugger in Chrome. I checked the AJAX result coming back (based on the get paramaters datatables was passing in) and found it was getting a null result set. A quick change in the server side code and things started working properly.

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

Sidebar

Related Questions

I have a DataTable that I manually created and loaded with data using C#.
I have a datatable that contains rows of transaction data for multiple users. Each
I have a DataTable that I'm creating an XML file from using .WriteXML(..), although
I have a datatable that holds data as such: Date OperationA OperationB OperationC Today
I have a DataTable that I have populated via the Dataset.ReadXML() method. I am
I have a datatable that has duplicate ID's. 1 data moredata 4354 1 data
I have a dataTable that shows data stored in a database. One of the
I have PrimeFaces dataTable that is been filled by a Ajax call. When I
I have a datatable that stores location values as such: CTY_CD, STATE_CD, COUNTRY_CD and
I have a datatable that I add to the chart in foreach loop 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.