« Return to Thread: Grid causing "slow script" message.

Grid causing "slow script" message.

by Jason Solan :: Rate this Message:

Reply to Author | View in Thread


Hello all,

  I am using dojo 1.1.1.  I have a grid with 20 columns (1 view), with a
mixture of input boxes and combo boxes.  I'm loading data in the grid
via store, which contains slightly more than 200 records.  When the data
gets loaded into the grid, often times I get a message saying that the
script is taking longer than expected and the browser asks if I would
like to continue or stop the script.

Using firebug's profiler it shows that
getPageNodePosition

in the scroller.js file is consuming over 50% of the process time.  This
function is extremely simple and returns a node's offsetTop value.

Can anyone tell me why that function would consume so much time?  Is the
profiler wrong/misguided?  Is there something I can do to increase
performance on this grid?

I have many other applications utilizing the grids, with fewer rows and
columns, and none of them seem to have this problem.

Thanks,
--Jason

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

 « Return to Thread: Grid causing "slow script" message.

LightInTheBox - Buy quality products at wholesale price!