Is there a callback function for Colresize?

Is there a callback function for Colresize?

bbaranibbarani Posts: 32Questions: 0Answers: 0
edited January 2013 in DataTables 1.9

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 );},



  • allanallan Posts: 46,545Questions: 1Answers: 6,495 Site admin
    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.