Custom sorting and icon disappear

Custom sorting and icon disappear

nnbishayeennbishayee Posts: 1Questions: 0Answers: 0
edited December 2012 in DataTables 1.8
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.

/* 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;
//iDisplayStart has been reset to zero - so lets change it back
oSettings._iDisplayStart = before;

//draw the 'current' page


Can any one help me to solve this problem (get back the custom sorting/icon)

This discussion has been closed.