Hi all,
After add the below code I'm able to solve the scroll-bar bouncing problem after every refresh, but due to the below code I just lost my custom column sort & it's icon from header.
Can any one help me to solve this problem (get back the custom sorting/icon)
Thanks
After add the below code I'm able to solve the scroll-bar bouncing problem after every refresh, but due to the below code I just lost my custom column sort & it's icon from header.
/* add this to your javascript to add this function to the datatable object */ $.fn.dataTableExt.oApi.fnStandingRedraw = function(oSettings) { //redraw to account for filtering and sorting // concept here is that (for client side) there is a row got inserted at the end (for an add) // or when a record was modified it could be in the middle of the table // that is probably not supposed to be there - due to filtering / sorting // so we need to re process filtering and sorting // BUT - if it is server side - then this should be handled by the server - so skip this step if(oSettings.oFeatures.bServerSide === false){ var before = oSettings._iDisplayStart; oSettings.oApi._fnReDraw(oSettings); //iDisplayStart has been reset to zero - so lets change it back oSettings._iDisplayStart = before; oSettings.oApi._fnCalculateEnd(oSettings); } //draw the 'current' page oSettings.oApi._fnDraw(oSettings); };
Can any one help me to solve this problem (get back the custom sorting/icon)
Thanks