Adjust column sizing after changing column visibility in customDrawCallback

Adjust column sizing after changing column visibility in customDrawCallback

vol7ronvol7ron Posts: 43Questions: 11Answers: 0
   if(api.order()[0][0] == some_column_number) {
      api.column( total_column_number ).visible(false,true);
      api.columns.adjust().draw();  // <-- seems like it would be recursive to call draw in a draw callback
      return;
   }

Is there a way to draw a table without triggering the draw callback?

Unless I'm missing something, I'm guessing that I could check the visibility of the column before the draw, which should avoid recursion.

This discussion has been closed.