Running standingReDraw on dataTables 1.7.6
Running standingReDraw on dataTables 1.7.6
streetlight
Posts: 26Questions: 0Answers: 0
Hey all,
I was hoping someone out there can give me advice on how to implement standingReDraw on 1.7.6. I want dont want to reload the entire table after making a change on a entry. Is this the right function to look towards?
Please help.
I was hoping someone out there can give me advice on how to implement standingReDraw on 1.7.6. I want dont want to reload the entire table after making a change on a entry. Is this the right function to look towards?
Please help.
This discussion has been closed.
Replies
Allan
Thank you so much for your response! I've tried to install it and run it in place of oTable.fnDraw in my reload function, to no avail. The function seems to run, but it doesn't produce the results I want.
Is there another way to try this by any chance? Your help is appreciated more than you know.
N
Allan
I've got no errors in the console. The basic thing that's happening is that on the reload, the oTable.fnClearTable() is ran, the data is sent via JSON (using fnAddData), then the table is reloaded using oTable.fnDraw(). I attempted to change this to fnStandingReDraw(), but I cannot get it to work.
Thank for your patience, too, by the way!
This is my code for the fnDraw API function too, if that helps (got the idea it might be this through this link = http://datatables.net/forums/discussion/11934/fndraw-without-resetting-pagination/p1)
[code]
this.fnDraw = function( bComplete )
{
var oSettings = _fnSettingsFromNode( this[_oExt.iApiIndex] );
if ( typeof bComplete != 'undefined' && bComplete === false )
{
_fnCalculateEnd( oSettings );
_fnDraw( oSettings );
}
else
{
_fnReDraw( oSettings );
}
};
[/code]
Allan