Search
4218 results 1171-1180
Forum
- 4th Oct 2018Datatable with checkbox column and option to select or deselect allajax: { url: 'myapi', dataSrc: '' }, columnDefs: [ { targets: 0, data: "select",
- 1st Oct 2018Problem using jquery extend osort on a dataTableavailableTable = $('#availableRecords').DataTable({ destroy: true, columnDefs: [{ targets:0, type: 'natural-nothml'}] , order:[0,'desc']
- 1st Oct 2018Update Table after server side filterd ) { d.options = opt; /* alert(d.options); */ } }, "columnDefs":[ { "targets":[2, 3], "orderable":false, }, ], }); and
- 29th Sep 2018Disable sorting on first columnThanks for the comment. I already solved it by leaving out the first row with the table name. This code worked for me: "columnDefs": [ { "orderable": false, "targets": 0 } ]
- 26th Sep 2018Using row with server side processingthat are in my "columnDefs" array and build up
- 25th Sep 2018Fixed Header not workingI need the second columndefs for child rows.. Isn't
- 21st Sep 2018Delete button not processingdata: "HRMGN5", "visible": false }, ], columnDefs: [ {"className": 'dt-center', "targets": [ 16]
- 21st Sep 2018Calculate age from date of birthThanks Colin and Allan, Working solution with moment.js. JS moment.js - link in html. <script type="text/javascript" charset="utf-8" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script> JS columnDefs: [ { targets: 13, mRender: function ( data, type, row ) { return Math.floor(moment(row.timestamp).diff(data, 'years', true))}} ]
- 17th Sep 2018How to use "select" plugin with AjaxI suggest using columns.defaultContent. Maybe something like this: "columns": [ { data: null, defaultContent: '', orderable: false, className: 'select-checkbox', }, {"data": "id"}, {"data": "nombre"}, {"data": "direccion"}, {"data": "createdAt"}, {"data": "updatedAt"} ], And remove your columnDefs option. Kevin
- 17th Sep 2018Reload DataTables after changeHello colin, thanks for your help. This is my script where i create the table: <script> $(document).ready(function() { $('#topdomains').DataTable( { "order": [[ 1, "desc" ]], "pageLength": 10, "bDestroy": true, "language": { "url": "https://domain.org/German.json" }, "bLengthChange": false, "columnDefs": [ { "targets": 4, "orderable": false, } ] } ); } ); </script>