TableTools print button with bStateSave is true bug.
TableTools print button with bStateSave is true bug.
micket
Posts: 2Questions: 0Answers: 0
When you press on the TableTools print button with bStateSave is true the Cookie value oData.iLength is set to -1.
If you do not use the escape button but go out differently, the next time you open your page, the whole table will be displayed instead of using pagination.
Is solved it using the fnCookieCallback function as follows:
[code]
"fnCookieCallback": function (sName, oData, sExpires, sPath) {
if(oData.iLength == -1)
oData.iLength = 10;
return sName + "="+JSON.stringify(oData)+"; expires=" + sExpires +"; path=" + sPath;
},
[/code]
If you do not use the escape button but go out differently, the next time you open your page, the whole table will be displayed instead of using pagination.
Is solved it using the fnCookieCallback function as follows:
[code]
"fnCookieCallback": function (sName, oData, sExpires, sPath) {
if(oData.iLength == -1)
oData.iLength = 10;
return sName + "="+JSON.stringify(oData)+"; expires=" + sExpires +"; path=" + sPath;
},
[/code]
This discussion has been closed.