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

Using bStateSave with iDeferLoading...

$
0
0
Hi,

I'm trying to get bStateSave working with my table as I want to maintain the sort order for the user when page is refreshed or when user comes back to a page with the table.

According to http://datatables.net/examples/basic_init/state_save.html just adding "bStateSave": true should be enough? But this is not working for me (version 1.9.3). I was wondering if this is because I use iDeferLoading? If yes, how do I get it work if I need to keep iDeferLoading as well? I am only guessing that it is not working because of iDeferLoading so please correct me if wrong.

 tbl = $(selector).dataTable({
    			"bStateSave": true,
    			"bProcessing": true,
    			"bServerSide": true,
    			"sAjaxSource": dataSource,
    			"iDeferLoading": totalRecCount,
        	
    			"sDom": layout ? layout : defaultLayout,
    					"fnDrawCallback": drawCallback,
    					"aoColumns": aoColumns,
    					"oLanguage": {
    					"sSearch": ""
    			}
    		});

Thanks for a great library btw!
Rav

Viewing all articles
Browse latest Browse all 82027

Trending Articles



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