datatables - data table columns data not display in mobile -


i using datatables , working fine in desktop in mobile there no data load table. problem?

here code:

$('#users-table').datatable({   dom: 'bfrtip',   buttons: [       'copy', 'csv', 'excel', 'pdf', 'print'   ],   scrolly: 300,   destroy: true,   processing: true,   serverside: true,   responsive:true,   ajax: '/depart/get_datatable/',   columns: [     { data: 'depart_name', name: 'departs.depart_name' },     { data: 'levels', name: 'departs.levels' },     { data: 'name', name: 'colleges.name' },     { data: 'action', name: 'action',searchable:false, sortable: false,             classname: 'text-right' }     ] }); 

the solution add cache :false ajax call ajax:{ url:......, cache:false }


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -