Hello there! I have a question regarding datatables. Is there any callback function available that is triggered after the datatables DOM element has finished loading? I am aware of the callbacks fnInitComplete, but they do not serve my purpose. Specifically, I would like to adjust the width of the "*-List" datatable element.
I had anticipated that by utilizing this callback function, the DOM element would be fully rendered, allowing me to retrieve its width. However, when I tried the following code snippet:
fnInitComplete: function(oSettings, json) {
var width = $("#ROI-List").width();
}
I found that the width always returns as 0, indicating that the DOM element has not completed loading. Despite attempting JQuery solutions, I have been unable to resolve this issue.
If anyone could provide assistance or guidance, it would be greatly appreciated.
Thank you in advance!