fnRowCallback not called in multiple page (server) or Refresh (fnUpdate)
fnRowCallback not called in multiple page (server) or Refresh (fnUpdate)
alexkumar
Posts: 1Questions: 0Answers: 0
I color my table row based on its values. So using fnRowCallback i accomplish this.
but its not called when i go to next page or when i reload page. Then i find a problem in fnDRAW when there is new page its not called.
So append after this code in file jquery.dataTables.js
oSettings.nTBody.appendChild( nAddFrag );
if ( nBodyPar !== null )
{
nBodyPar.appendChild( oSettings.nTBody );
}
=== with this.
for ( i=0, iLen=anRows.length ; i<iLen ; i++ )
{
_fnCallbackFire( oSettings, 'aoRowCallback', null,
[anRows[i], oSettings.aoData[ oSettings.aiDisplay[i] ]._aData, i, i] );
}
Let me know if anyone have the problem. Enjoy.
This discussion has been closed.