setColumnWidth issues
Alex,
I have been doing some timing and I found something disturbing. When I call setColumnWidth on any given column on a grid the first time, it takes almost 1 second to execute. If I make a second call to it (I am passing in the same value for the width, I am switching back to a grid that has previously been displayed but subsequently erased from the screen) the execution is 1/10 of that. I have a grid with 37 columns, no data, and it takes over 30 seconds to adjust the columns. When I re-display that same grid, it displays in about 2.5 seconds. I got the timing numbers because I call a function that loops through an array of column widths and after setting each column width it updates the window.status so I can see the progress. All of this is done prior to rendering the grid to the page.
Any thoughts?
I have been doing some timing and I found something disturbing. When I call setColumnWidth on any given column on a grid the first time, it takes almost 1 second to execute. If I make a second call to it (I am passing in the same value for the width, I am switching back to a grid that has previously been displayed but subsequently erased from the screen) the execution is 1/10 of that. I have a grid with 37 columns, no data, and it takes over 30 seconds to adjust the columns. When I re-display that same grid, it displays in about 2.5 seconds. I got the timing numbers because I call a function that loops through an array of column widths and after setting each column width it updates the window.status so I can see the progress. All of this is done prior to rendering the grid to the page.
Any thoughts?
Jim Hunter (www.FriendsOfAW.com)
March 3,