Search
-
PDF and Print Buttons - Footer on each page
by mpiettegss ·$('#myTable').DataTable( { "buttons": [ { text: 'Custom PDF', extend: 'pdfHtml5', filename: 'dt_cu -
How can I update a table caption dynamically?
by allan ·There is no caption() method. That will be coming in v2. At the moment you would need to use a little jQuery - $('#myTable caption').html(...). -
Building updatable list from API
by east1999 ·I have already coded a function that operates in a similar way: it extracts the keywords and builds a select form. However, the only way I achieved this was by initiating a new JSON call after DT load -
Redrawing Chart after first load
by kthorngren ·initComplete passes $('#mytable').DataTable() for the table variable to setTableEvents() -
Passing nested JSON values via API
by kthorngren ·var data = $('#myTable').DataTable().rows().data(); -
Which callback or event to use so that myDataTable.rows() is populated
by kthorngren ·$('#myTable').DataTable().rows(); -
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 }); -
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'). -
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 ) { -
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' ] }) -
How to prevent XSS when using columns.render to render e.g. a link?
by allan ·$('#mytable').DataTable({ 'ajax': { /* ... */ } 'columns': [ { 'data': 'label', 'render': function (data, type, row, meta) { var sanitized = $.fn.dataTable.render.text().di -
draw() not working after table refresh with AJAX
by tarudian ·var api = $("#myTable").dataTable().api(), data; -
How to prevent XSS when using columns.render to render e.g. a link?
by johanv ·$('#mytable').DataTable({ 'ajax': { /* ... */ } 'columns': [ { 'data': 'label', 'render': function (data, type, row, meta) { return '<a rel="nofollow" href=&qu