Monday, July 6, 2009

Fragile Javascript - Dancing Grid with Dojo


I have had some instances of an AdvancedDataGrid with complex renderers in Flex going into a dancing mode where it would continue to shrink and expand indefinitely. It was funny to find the same behavior while testing dojo's DataGrid. In this case, however, it didn't take much to do that, it happened with simple content. Simply nesting a grid component inside a BorderContainer did it for me.

While the grid is dancing, open your windows explorer to see process memory and CPU usage. The IE process would continue to creep up - for me it reached 200MB of memory and 50% of CPU very quickly before I closed the tab.

To see the dancing with dojox grid, download dancinggrid.doc, change the extension to .html and open it in IE7/8. This assumes that you have all the dojo libraries under dojo/ directory.

No comments:

Post a Comment