Is there a faster method to fnAdjustColumnSizing?

Is there a faster method to fnAdjustColumnSizing?

holobeatholobeat Posts: 5Questions: 0Answers: 0
edited December 2010 in General
Hello,

I have over 2000 rows displayed in the datatable. The datatable is sized to 100% width. If user resizes the browser window, my javascript code executes fnAdjustColumnSizing() on the table to match widths of the column headers with new data columns widths. When fnAdjustColumnSizing() executes, it also loads the data into the grid from the server again (I am using server processing). This is not a problem if the table has 100 rows, but it has significant delays when the table has over 1000 rows. Why does it load the data from the server each time fnAdjustColumnSizing() is called just to recalculate the header width? Is there a workaround to this?

Thank you,

Gustav
This discussion has been closed.