Probably. You have to find out where all the time is being spent and do some optimization. How much data is a "large amount"? How many line and bar charts are on screen? Do all of them need updating or can you stop certain ones from updating? Can you break up the updates and just do one pair of charts at a time? You could take one of your line and bar charts and measure how long it takes to update them with new data when outside of the DG, then test with only one pair in the DG. One way I do this is to put an "enterFrame" listener on the stage and trace out the value of getTimer(). Normally, you'll see the value increase by the frame-rate. Then when it gets busy you'll see the value increase by much more and that gives you an idea of the overhead. -Alex
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of arpan srivastava Sent: Tuesday, April 10, 2007 8:47 AM To: Flex Components Subject: [flexcomponents] please help! timeout error with large data? Hi All, I am getting this error when I give a large amount of data to my component that consists of a datagrid with line charts and bar charts in it's columns. Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at mx.managers.layoutClasses::PriorityQueue/removeSmallestChild() at mx.managers::LayoutManager/validateClient() at mx.core::UIComponent/validateNow() at mx.controls.dataGridClasses::DataGridBase/mx.controls.dataGridClasses:Da taGridBase::drawItem() at mx.controls.dataGridClasses::DataGridBase/mx.controls.dataGridClasses:Da taGridBase::makeRowsAndColumns() at mx.controls::DataGrid/mx.controls:DataGrid::makeRowsAndColumns() at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::upda teDisplayList() at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList() I did following: scriptTimeLimit="500" scriptRecursionLimit="50000" but is there any other way around ? ________________________________ Never miss an email again! Yahoo! Toolbar <http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar /features/mail/> alerts you the instant new Mail arrives. Check it out. <http://us.rd.yahoo.com/evt=49937/*http://tools.search.yahoo.com/toolbar /features/mail/>
