Search
11455 results 1761-1770
Forum
- 10th Apr 2026Problem with Filter placement on mobileCould you clarify what you want the outcome to be please? When on a narrow page (e.g. mobile), the page length and search controls will collapse to be stacked and center aligned - e.g.: I'm not sure what you are looking for it to do instead of that? Allan
- 4th Feb 2026How to check if ColumnControl (serverSide enabled) contains any filter?top', 'data-bs-title': "Remove all filters", id: 'ccSearchClear'}, action: function
- 22nd Dec 2025do not alter filter row in headerawesome! thanks @allan
- 26th Sep 2025Different spacing in filter fields between String and Numeric typesLink to test case: https://datatables.net/extensions/columncontrol/examples/styling/bootstrap4.html Debugger code (debug.datatables.net): NA Error messages shown: NA Description of problem: Hello, Is it normal that the space between the left border and the text is not the same? For string fields: For numeric fields: My example is taken from Bootstrap 4 but the behavior is essentially the same on other frameworks. Also, do you think is could be nicer if you add the same space to the right? Thanks in advance for your answer and have a nice day.
- 25th Aug 2025Column Filter Textbox Widthtextbox used in column filtering is fixed width. Even
- 29th Jul 2025Issue with date range filter and date format DD.MM.YYYYThank you. :) The comparison change worked.
- 28th Jul 2025stateLoadParams fires before my custom filter elements are createdGot it working, thank you!
- 2nd Apr 2025DataTables date range filter displays rows for plus one day!There's a table. We need to make a selection by date. But if you enter for example min Apr 4, 2025 and max Apr 4, 2025 data is not displayed at all - no data. To view Apr 4, 2025 it is necessary to enter min Apr 3, 2025 and max Apr 4, 2025. Where is my trick? Everything works fine in the example. $(document).ready(function () { var hearing_array = 'ajax/data_array'; var table = $('#table-list').DataTable({ "autoWidth": false, "order": [[1, 'asc']], 'ajax': hearing_array, "deferRender": true, columnDefs: [{ targets: 1, render: DataTable.render.datetime('MMM DD, YYYY') }], "columns": [ {"data": "id", "visible": false, "searchable": false}, {"data": "date", "width": "5%"}, {"data": "earliest"}, {"data": "earliest_dismissal"}, { "data": null, "width": "3%", "targets": -1, "defaultContent": " ", "visible": false }, {"data": "manual_processing_required", "visible": false} ], }) let minDate, maxDate; DataTable.ext.search.push(function (settings, data, dataIndex) { let min = minDate.val(); let max = maxDate.val(); let date = new Date(data[1]); if ( (min === null && max === null) || (min === null && date <= max) || (min <= date && max === null) || (min <= date && date <= max) ) { return true; } return false; }); minDate = new DateTime('#min', { format: 'MMM DD, YYYY' }); maxDate = new DateTime('#max', { format: 'MMM DD, YYYY' }); document.querySelectorAll('#min, #max').forEach((el) => { el.addEventListener('change', () => table.draw()); }); } ); Please pardon me for showing screenshots. If 03 April to 03 April - no data If 02 April to 03 April - then the data for 03 April Any thoughts would be appreciated.
- 30th Jan 2025Checkboxes - filter by 'contains string' rather than 'exact string'Thank you Kevin, the first solution works well.
- 29th Jan 2025Is it possible to configure a drop down list that will filter the table rows based on the selection?See this example. Kevin