Search
-
Make all links in a dataTable open in a new tab/window?
by allan ·$('#myTable a').attr('target', '_blank'); -
State Saving
by kenblmar ·but not for select boxes $('#myTable thead tr:eq(1) th:eq(' + index + ') input', $('.filters th')[colIdx]).val( colSearch.search ); //Also tried doing it by index sta -
State Saving
by kenblmar ·if ( colSearch.search ) { $('#myTable thead tr:eq(1) th:eq(' + index + ') input', $('.filters th')[colIdx]).val( colSearch.search ); // select box -
Can you provide some sample code.
-
problem with ID
by babycodes ·$(document).ready(function(){ $('#myTable').DataTable({ "bProcessing" : true, "pagingType" : "numbers", "sAjaxSource" : " -
Show custom button according custom option
by rodriformiga ·"back"); } } }); $("#myTab").DataTable({ "ajax": {"url": "loadData.php", type: "POST" } , "backUrl": "pageSearchD -
Change parameter used in datatables ajax url.Action on Ajax.reload
by tarudian ·var testURL = CreateUrl("mytool/GetProjects?cyfy=") + Switch; $('#myDatatable').DataTable().ajax.url(testURL).load(); -
Change parameter used in datatables ajax url.Action on Ajax.reload
by tarudian ·$('#myDatatable').DataTable().ajax.url("GetProjects", "budgeter", new { cyfy = 0 }).load(); -
Change parameter used in datatables ajax url.Action on Ajax.reload
by tarudian ·$('#myDatatable').DataTable().ajax.url("GetProjects", "budgeter", 1).load(); but its throwing Invalid JSON response. -
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' } ); } );