Server-side with fnDraw and remembering page
Server-side with fnDraw and remembering page
I want to keep the page I'm on after using fnDraw. I saw this post which seems to have exactly what I need: http://www.datatables.net/forums/discussion/6340/server-side-and-polling-with-fndraw-remembering-page/p1
I'm getting a bit confused with fnStandingRedraw. The code has this:
[code]
jQuery.fn.dataTableExt.oApi.fnStandingRedraw = function(oSettings) {
if(oSettings.oFeatures.bServerSide === false){
...
[/code]
But I thought this was an alternative to use with server side processing. So in fact what you want is this:
[code]
jQuery.fn.dataTableExt.oApi.fnStandingRedraw = function(oSettings) {
if(oSettings.oFeatures.bServerSide != false){
...
[/code]
I tested this out and the latter certainly does what I intend. Am I misunderstanding the use of this API?
I'm getting a bit confused with fnStandingRedraw. The code has this:
[code]
jQuery.fn.dataTableExt.oApi.fnStandingRedraw = function(oSettings) {
if(oSettings.oFeatures.bServerSide === false){
...
[/code]
But I thought this was an alternative to use with server side processing. So in fact what you want is this:
[code]
jQuery.fn.dataTableExt.oApi.fnStandingRedraw = function(oSettings) {
if(oSettings.oFeatures.bServerSide != false){
...
[/code]
I tested this out and the latter certainly does what I intend. Am I misunderstanding the use of this API?
This discussion has been closed.