DataTables logo DataTables

Is there a callback function for Colresize?
  • Hi,

    I am using the colreorderwithresize.js plugin. Everything works fine, but most of the times the table is not getting aligned with header when the header is resized. I am trying to figure out if there is a call back function associated with resize such that I can call oTable.fnAdjustColumnSizing() whenever resize happens.

    somethinng like fnReorderCallback that gets invoked when reordering the columns ?

    I tried adjusting column width using fndrawcallback but this creates performance issues when filtering the data (since this is invoked everytime a change happens to the table).

    "fnDrawCallback": function(oSettings) {

    setTimeout( function () {
    }, 3000 );},

  • Looking at the plug-in's code - it doesn't look like it, although I'm sure one could easily be added in the drag method.

    I think you'll need to debounce (throttle) the call to fnAdjustColumngSizing one way or another though.

This discussion has been closed.
All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Get useful and friendly help straight from the source.