Search
-
Remove ColumnControl on certain Columns
by kthorngren ·function formSubmit (formAction) { event.preventDefault(); var tables = $('#example').DataTable(); .... -
Remove ColumnControl on certain Columns
by dnettles10 ·Issue: Grid works fine with a Child Row being displayed when a row is clicked. This Child Row has a Form with a Comment field (to make this simple but the actual Form contains radio buttons, dropdow -
Remove ColumnControl on certain Columns
by dnettles10 ·); } let table = new DataTable('#example', { searching: true, layout: { topStart: toolbar }, ajax: { url: '/xxxx', dataSrc: ' -
Issue with Whole Row Inline Editing: onBlur: 'submit' + submit: 'allIfChanged'
by kthorngren ·var table = $('#example').DataTable(); editor = table.editor(); // Turn off original click event handler for inline editing table.off('click', 'tbody td:not(:first-child)'); // Activate an inline edi -
Issue with Whole Row Inline Editing: onBlur: 'submit' + submit: 'allIfChanged'
by kthorngren ·var table = $('#example').DataTable(); editor = table.editor(); // Turn off original click event handler for inline editing table.off('click', 'tbody td:not(:first-child)'); // Activate an inline edi -
Issue with Whole Row Inline Editing: onBlur: 'submit' + submit: 'allIfChanged'
by YousefMohammad ·$('#example').on('click', 'tbody td:not(:first-child)', function (e) { editor.inline(table.cell(this).index(), { onBlur: 'submit' }); }); -
Issue with Whole Row Inline Editing: onBlur: 'submit' + submit: 'allIfChanged'
by YousefMohammad ·name: 'salary' } ], table: '#example' }); var table = $('#example').DataTable({ ajax: { url: '/api/staff', type: 'POST' }, columns: [ { -
Sort arrow position (before or after ?)
by allan ·Hi, -
Dynamically assign column headers
by NoBullMan ·$(document).ready(function () { vat table = $('#example').DataTable()' $('#example thead th:eq(0)').html('new column header'); } -
Sorting arrows now positioned on the left of the rightmost column headings
by allan ·There is discussion about this in the 2.3 announcement post. -
ColumnControl: Sending search values with ajax
by kthorngren ·$('#example').DataTable().state(); -
Code for the table on the datatables.net front page.
by allan ·$('#example') .addClass( 'nowrap' ) .dataTable( { responsive: true, columnControl: [ 'order', -
Datatable Editor inlineCreate Persistence/Sticky/Fixed with Conditional onBlur
by steffes ·var editor = new DataTable.Editor({ ajax: '../php/staff.php', fields: [...], formOptions: { inline: { onBlur: 'none', } }, table: '#example' }); $('#e -
Setting http header for ajax
by allan ·let table = new DataTable('#example', { ajax: { url: '', dataSrc: 'data', headers: { Authorization: 'my-key' } }, columns: [ { data: 'na -
ColumnControl Icon Placement and Menu Displacement
by allan ·Hi, -
Add button conditionally
by seven21 ·var dt = new DataTable('#example', { paging: false, ordering: false, info: false, layout: { topStart: { buttons: ['csv', 'excel'] }, topEnd: { buttons: [{ -
Problem with custom values for FixedColumns with button initialisation
by allan ·new DataTable('#example', { layout: { topStart: { buttons: [ { extend: 'fixedColumns', text: 'FixedColumns', -
"draw.dt"
by allan ·let dt = new DataTable('#example'); dt.on('draw', () => { console.log('Doing draw'); }); -
scrollX causes unnecessary scrolling
by ahmeti ·$('#example').DataTable({ scrollX: true, preDrawCallback: function (data) { data.nTableWrapper.querySelectorAll('colgroup').forEach((e) => e.remove()); } }) -
Datatable Editor inlineCreate Persistence/Sticky/Fixed with Conditional onBlur
by steffes ·var editor = new DataTable.Editor({ ajax: '../php/staff.php', fields: [ { label: 'First name:', name: 'first_name' }, { label: 'Last