Showing 0 to 0 of 0 entriesAshish Pandey8yAsked Oct 17, 2018, 6:11 AM1.6kAJAXsorting and seaching not working
Dorababu Meka8y agoPosted Oct 17, 2018, 7:52 AMAccepted answerI guess you need to off the server side processing if you want the sorting and filter to be worked. Sample code which works for me $(document).ready(function () { $("#tblData").DataTable({ "processing": true, "serverSide": false, "filter": true, "pageLength": 5, "ajax": { "url": "/Home/LoadData", "type": "GET", "datatype": "json" }, "columns": [ { "data": "StudentID", "name": "StudentID", "autoWidth": true }, { "data": "StudentName", "name": "StudentName", "autoWidth": true }, ] }); }); 0
Suraj Kumar8y agoPosted Oct 17, 2018, 6:17 AMHello Ashish,Check with inspecting it in browser and remember the name of column should be same you have used in the table. 0
Dorababu MekaPosted Oct 17, 2018, 7:52 AM
Suraj KumarPosted Oct 17, 2018, 6:17 AM