bStateSave with sAjaxSource not working completly in v1.7.x

bStateSave with sAjaxSource not working completly in v1.7.x

catercarlocatercarlo Posts: 1Questions: 0Answers: 0
edited December 2010 in Bug reports
Hi Allan,
I have use your datatable script in my first big internal project, most things working fine.

But I having problems to get bStateSave working correct with sAjaySource set.
After an page reload filter and rows per page is saved and set correctly but the viewed page (iStart and iEnd) are lost and not set to the last viewed records. It seems that iStart and iEnd in the cookie is reset before page reload.

This is my datatable definition:
[code]
$(document).ready(function() {
oTable = $("#myDataTable").dataTable( {
"bProcessing": true,
"bServerSide": false,
"sAjaxSource": "customerlist.json",
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"bStateSave": true,
"oLanguage": {
"sProcessing": "Bitte warten...",
"sLengthMenu": "Zeilen pro Seite",
"sZeroRecords": "Keine Eintr

Replies

  • sarthazsarthaz Posts: 3Questions: 1Answers: 0
    I have the same problem with 1.7.6. DT remembers column sorting but not the selected page. My code's pretty simple too:

    [code]
    $(document).ready(function() {
    var dT = $('#dt').dataTable({
    'bProcessing': true,
    'bServerSide': false,
    'bStateSave': true,
    'sAjaxSource': 'data.php'
    });
    });
    [/code]
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Can you try the 1.8 beta please. There have been a few fixes in this area.

    Allan
  • FlashJuniorFlashJunior Posts: 9Questions: 0Answers: 0
    @allan it works for me with 1.8 beta. but if i have two tables (one with bStateSave true and the other with bStateSave false) it safes the state of both :-/
This discussion has been closed.