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

Ajax call won't run

$
0
0
New to databtables, my server-side function never gets called, anyone know why? Thanks. (when I call the now-empty function you see here directly I do get the expected Json results)
    public class PagesController : Controller
    {
        public ActionResult AjaxMasterCatGrid(jQueryDataTableParamModel param)
        {

            // blah blah this does not matter it doesn't get hit, why?

        }
    }
   $(document).ready(function () {

        $('#tblCats').dataTable({
            "bServerSide": true,
            "sAjaxSource": "Pages/AjaxMasterCatGrid",
            "bProcessing": true,
            "aoColumns":
            [
                {
                    "sName": "Name",
                    "bSearchable": false,
                    "bSortable": true
                },
                {
                    "sName": "Code",
                    "bSearchable": false,
                    "bSortable": true
                },
                {
                    "sName": "IsPrecontract",
                    "bSearchable": false,
                    "bSortable": true
                },
                {
                    "sName": "IsActive",
                    "bSearchable": false,
                    "bSortable": true
                }
            ]
        });
    });
(to be clear, it is "datatabling", I see the Search and so on, the js runs, I just get no data in the grid)

Viewing all articles
Browse latest Browse all 82109

Trending Articles



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