Search
4182 results 1141-1150
Forum
- 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>
- 15th Sep 2018CSV without Button is possible?Thank you @kthorngren for the help, that worked perfectly. Now wondering how to remove a column from the export that is not visible in my dataTable? I'm using: "columnDefs": [ { "visible": visible, "targets": 0 } ] To hide the first column.
- 14th Sep 2018Button action how to get all valuesdom: 'Blfrtip', select: true, **columnDefs: [ { targets: 3 , visible: false,
- 6th Sep 2018usage of post date ($_POST) or variable ($nom)20, 50, 100, "All"]], columnDefs: [ { type: "num-html", targets: 4