bStateSave with sAjaxSource not working completly in v1.7.x
bStateSave with sAjaxSource not working completly in v1.7.x
catercarlo
Posts: 1Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
[code]
$(document).ready(function() {
var dT = $('#dt').dataTable({
'bProcessing': true,
'bServerSide': false,
'bStateSave': true,
'sAjaxSource': 'data.php'
});
});
[/code]
Allan