TableTools print button with bStateSave is true bug.

TableTools print button with bStateSave is true bug.

micketmicket Posts: 2Questions: 0Answers: 0
edited June 2011 in Bug reports
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]
This discussion has been closed.