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

Disable autosorting

$
0
0
Hi guys... short question..

i get my query this way

$query = "SELECT userid,username,fullname FROM user ORDER BY username ASC";


but in the table its ordered by userid.. but i want it raw out of my query into table but must be sortable by clicking on thead..

i don't don't wont to create for every table a new jquery (i have many tables with different order functions)
this is my table-code:

$('#normal-table').dataTable( {
			"bJQueryUI": true,
			"bPaginate": false			 
		});



with this code i recieve the sorting-methode from my query.. but i can't click sort on thead:

$('#normal-table').dataTable( {
			"bJQueryUI": true,
			"bPaginate": false,
			"bSort": false,			 
		});

is there a way to do this?

Viewing all articles
Browse latest Browse all 81688

Trending Articles



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