Search
-
Change parameter used in datatables ajax url.Action on Ajax.reload
by tarudian ·var oTable = $('#myDatatable').DataTable({ "bPaginate": false, dom: 'Bifrtp', "ajax": { -
Column width Resizes automatically after re-initialization
by priyapoojari ·$('#mytable").dataTable({ -
Responsive table and StateSave
by gwlava ·var table = $('#myDataTable').DataTable(); -
Getting Uncaught Unable to automatically determine field from source. Please specify the field name.
by svelu2002 ·to the server // d.custom = $('#myInput').val(); // etc } }, select: false, buttons: [ ], "footerCallback": function ( ro -
tooltip in th header cells not accessible
by allan ·At the moment I think you would need to use $('#myTable thead th').removeAttr('tabindex') once the table has been initialised. -
JSON - accessing returned data other than 'data'
by needmorecoffee ·var data = $('#myForm').serializeArray(); $.ajax({ type: "POST", url: "the-ajax.php", data: data, dataType: "json", success: function(js -
Applying Datatables to a dynamically created table.
by crwdzr ·// this object is on a per-table basis, it should be // unique and contain where the data is coming from // can replace with any other data sourcing method you use ajaxConfig = { url: myAjaxURL, -
trigger row selected from double click
by allan ·$('#myTable tbody').on('dblclick','tr',function(e){ dataTable.rows(this).select() }) -
trigger row selected from double click
by crwdzr ·$('#myTable').on('click','tr',function(e){ e.stopPropagation() }) $('#myTable').on('dblclick','tr',function(e){ e.stopPropagation() let rowID = $(this).attr('id') -
Table data sometimes apear when columns are hidden
by TristanLG ·//Cols are initiated properly, with the 3 following attributes : name, orderable, visible var table = $("#myTable); table.dataTable({ "autoWidth": false, -
Invoke editor for a row upon double click
by allan ·$('#myTable').on( 'dblClick', 'tbody tr', function () { editor.edit( this, { title: 'Edit', buttons: 'Save' } ); } ); -
Details button not appear in my solution...
by Itamarcus ·var oTable = $('#myDatatable').DataTable({ -
Invoke editor for a row upon double click
by allan ·$('#myTable').on( 'dblClick', 'tbody tr', function () { editor.edit( this, { // form options } ); } ); -
bootstrap-tabs + ajax
by advania ·` $('#myTab a').click(function(e) { -
bootstrap tabs with one ajax populated table+editor per tab
by advania ·$('#myTab a').click(function(e) { e.preventDefault(); $(this).tab('show'); }); // store the currently selected tab in the hash value $("ul.nav-tabs > li > a").on -
Collapse entire table to header
by crwdzr ·$('#mytable>tbody').css('display', 'none'), or animate it with .fadeIn() and .fadeOut() -
How to select without clicking?
by ttse ·var table = $('#myTable').DataTable(); -
Problem datatable modal datatable
by Jorge toro ·$("#myModal").modal({ keyboard: false }); var data2 = table.row( this ).data(); var id=data2.id_doc $.ajax({ processing: true, serverSide: true, data: -
Playing music outside of the datatable.
by allan ·$('#myTable').on( 'click', 'tbody tr', function () { var rowData = table.row( this ).data(); // some code to change the audio player's source ... audio.play(); } ); -
start setting not restored from state with serverSide?
by HobieCat ·$('#mytable').DataTable({ "stateSave": true, "stateDuration": -1, "deferRender": false, "serverSide" : true, "processing" : true,