Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rohan on Oct 08, 2009 07:46
open dhtmlx forum
IE6, IE7, IE8 performance issue due to setSizes()

Hello,

Please check out this issue - http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=3&q=7742&ssr=yes&s=setSizes

I am facing the same problem with my dhtmlx application. The application runs very slowly on IE and becomes slower, longer the user stays on the web page. On firefox, though it becomes slower with time, the impact is less.

Commenting the line 'this._sizeTime=window.setTimeout(function(){self.setSizes()}, 250);' of dhtmlxgrid.js causes problems like grid not loading properly on hiding/showing the parent div.

My dhtmlxGrid build is "v.1.6 build 80603"

Has a fix been developed for this issue in the later releases? Is there any way around using the "setTimeout" function?

Thanks in advance.
Answer posted by Support on Oct 08, 2009 08:10
If you are using complex layouts - you need to update to the dhtmlx 2.5 , base elements of layout there redesigned to eliminate the reasons of slowness. 

>> causes problems like grid not loading properly on hiding/showing the parent div.
Just call 
      grid.setSizes();
after switching grid to the visible state. 
Actually , above line can be a reason of the slowness only if you have tens of  grids on the page.