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

How can I preserve user selected sort order while giving precedence to initial sorting

$
0
0

I tried the stateSave option and it worked great - but ran into problems because it ends up overriding the initial sorting when the page is loaded next time.

My table initialization code looks like this.

            $('#ResultsTbl').dataTable( {
                "bPaginate": false,
                "bSortable": true,
                "bDestroy": true,
                "bFilter": false,
                "stateSave": true,
                "bInfo": false,
                "aaSorting": [[8,'asc']],
                "oLanguage": {"sZeroRecords": "", "sEmptyTable": ""}
            });

Viewing all articles
Browse latest Browse all 82314

Trending Articles



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