How to fix datatables responsive doesn't work with ajax call
By FoxLearn 2/16/2024 9:03:31 AM 225
This post shows you how to fix datatables responsive doesn't work with ajax call
If you are using datatables plugin and getting a problem with responsive table with ajax call you can fix by adding to initialize your datatable.
"autoWidth": false
You need to stop this behaviour in bataTables is set the autoWidth parameter to false.
"responsive": true, "autoWidth": false,
For example
$(document).ready(function() { table = $('#tbl').DataTable({ responsive: true, "ajax": "table", "autoWidth": false, "columns": [ { "data": "id" }, { "data": "name"} ] }); });
- How to hide “Showing 1 of N Entries” with jQuery datatables
- How to Change parameter used in datatables ajax url.Action on Ajax.reload
- How to add class to tr using jQuery datatable
- How to fix 'Requested unknown parameter '6' for row 0, column 6'
- How to Add new row to datatable using jquery datatable
- Ho to add class to column dynamically using jQuery datatable
- How to remove no data available in table from datatable in jQuery
- How to Rename “show XX entries” dropdown in DataTables
Categories
Popular Posts
Spica Admin Dashboard Template
11/18/2024