Implement server-side rendering of datatables in users#index

This commit is contained in:
Nishanth Vijayan 2016-08-01 02:32:48 +05:30
parent 86ba2d005e
commit caa63f9c1c
4 changed files with 66 additions and 31 deletions

View file

@ -12,7 +12,14 @@ $(function () {
pagingType: 'full_numbers',
order: [[ 0, 'desc' ]]
});
$('#userstable').DataTable({
pagingType: 'full_numbers',
processing: true,
serverSide: true,
sAjaxSource: $('#userstable').data('source'),
aoColumns: [ null, { "bSortable": false }, null, null, { "bSortable": false }, { "bSortable": false }, { "bSortable": false }, { "bSortable": false }]
});
});
});