Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82115

disable pagination on a custom table

$
0
0
Hi I have a table with a 2nd column with date format (dd/mm/yyyy hh:mm:ss am/pm).I only want to allow sorting by date on the table.Everything is working as expected.I would like to disable pagination on the table.Where should I add the code "bSortable":false ? I have tried a few things but it is not working as expected.Having problems getting the syntax right I am using the following js code in the header:
<script type="text/javascript">
$(document).ready( function() { $('#gradientstyle').dataTable( {"aoColumns": [{ "bSortable": false },null,{"bSortable": false },{"bSortable": false },{ "bSortable": false }] } );} );
</script>
and the following code before closing the html body.
<script type=\"text/javascript\">
$(document).ready(function () {$('#gradientstyle').dataTable({aoColumnDefs: [{ "sType": "datetime-au", "aTargets": [1] }]
</script>

Viewing all articles
Browse latest Browse all 82115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>