Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82436

Trying to load once via ajax from server and then sort and filter on client side.

$
0
0
I am trying to get my data from the server via ajax one time and then use client side sorting, filtering, etc.

I thought this would accomplish that, but it only pulls data if I have bServerSide set to true:

    $(document).ready(function () {
        
        var oTable = $('#dataTableAccountList').dataTable({
            "bServerSide": false,
            "bDeferRender": true,
            "sAjaxSource": '/AccountList/GetData'
        });

        $('.dataTables_length select').uniform();
        $('.dataTables_paginate > ul').addClass('pagination');
    });


If I set it to true I get the data, if I set it to false I get "No data available in table"

Guessing that I am missing something simple. The page is not yet published, but if you need me to get something out there then I will put it together.

Thanks!

Viewing all articles
Browse latest Browse all 82436

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>