Is there a callback function for Colresize?

Is there a callback function for Colresize?

edited January 2013 in DataTables 1.9 Posts: 32
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 () {
oTable.fnAdjustColumnSizing();
}, 3000 );},

Thanks,
Barani

Replies

  • Posts: 22,283
    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.

    Allan
This discussion has been closed.