Is there a callback function for Colresize?
Is there a callback function for Colresize?
bbarani
Posts: 32Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
I think you'll need to debounce (throttle) the call to fnAdjustColumngSizing one way or another though.
Allan