Search
-
Custom column search logic
by colin ·}); $('#mySearch').on( 'keyup click', function () { table.column(0).search('^' + $(this).val() + '$', true); if (table.page.info().recordsDisplay != 1) { table.column -
Problem when redefining columnDefs
by SlowburnAZ ·I have a report that I'm creating, and depending on whether a checkbox is checked or not, I supply the $('#myTable').DataTable(...) call with a different array for the columnDefs parameter. -
Cannot display overall column sums of the datatable
by kthorngren ·var data = [ [1,2,...5], [6,7,...9],.... ] //json data array - 21 elements var table = $('#myTable').DataTable( { data: data, ...... //any remaining config needed - no ajax option }); -
Search and Sort on columns (td) with select element inside
by dubvelis ·$('#myGridView').DataTable({ -
.fixedColumns().relayout() not working
by ashish9342 ·$('#myDataTable-' + tableID).DataTable({ -
displayStart issue
by kthorngren ·$('#myTable').DataTable().page(1); -
displayStart issue
by applik ·$('#myTable').DataTable({ searching:false, responsive:true, lengthMenu:false, pageLength:10, displayStart:1, language: { emptyTable:"Aucune association", -
How can I search in two tables so that for 1st table I want datatables default search functionality
by kthorngren ·You can use a selector like this for a specific table: $('#myTable_filter input'). -
Customized search applicable to both normal datatable and datatable with child rows.
by kthorngren ·You can use a selector like this for a specific table: $('#myTable_filter input'). -
Django Ajax Datatable Loses Sort and Pagination
by thedarkring ·if (data.form_is_valid) { var info = $('#my-table').DataTable().page.info(); var order = $('#my-table').DataTable().order(); $('#ip-table').DataTable().destroy(); $("#my-table t -
Django Ajax Datatable Loses Sort and Pagination
by kthorngren ·if (data.form_is_valid) { $("#my-table tbody").html(data.html_mytable); $("#modal-my").modal("hide"); $("#my-table").DataTable().rows().invalidate() -
Django Ajax Datatable Loses Sort and Pagination
by thedarkring ·if (data.form_is_valid) { $("#my-table tbody").html(data.html_mytable); $("#modal-my").modal("hide"); $("#my-table").DataTable().rows().invalidate() -
Django Ajax Datatable Loses Sort and Pagination
by kthorngren ·if (data.form_is_valid) { $("#my-table tbody").html(data.html_mytable); $("#modal-my").modal("hide"); -
Django Ajax Datatable Loses Sort and Pagination
by thedarkring ·var mytable = $("#my-table").dataTable({ stateSave: true }); var saveForm = function () { var form = $(this); $.ajax({ url: form.attr("actio -
Translate button pageLength inside language file .json
by itajackass ·$('#myTable').DataTable( { dom: 'Bfrtip', language: { buttons: { pageLength: { _: "Afficher %d éléments", '-1': "Tout afficher" } } -
[DT 10.1] Select row
by kthorngren ·$('#myTable').DataTable().row(function ( idx, data, node ) { -
Loading the language files makes DataTables to do not work normally
by manutiedra ·then in the call to curr_element.DataTable(config) some styles are applied but not all, and not all the elements are created. For example, the #myId_length element is not yet created, so I can't do an -
Set focus to search easily
by allan ·var table = $('#myTable').DataTable(); $('div.dataTables_filter input', table.table().container()).focus(); -
[DT 10.1] Select row
by deliator ·I add a record in the DB with an ajax call and then as a return success action : $('#myTable').DataTable().ajax.reload(); -
Buttons not displaying
by JohnBrooking ·$(document).ready(function () { $('#MyTable').DataTable ({ order: [[1, 'asc' ]], dom: 'Bflrtip', buttons: [ 'csv', 'excel' ] })