On 9/29/05, sergei_tsoganov <[EMAIL PROTECTED]> wrote: > When I first loaded my flex datagrid with 190 records I was really > disappointed in flex. It was almost impossible to scroll tha grid or > resize it. It seems like flex components are much slower than even > flash components. What is the reason?? How to make datagrid to scroll > faster with 200 rows?
I don't know why you're facing problems with scrolling. The number of records does not affect the scrolling performance for the list controls (List, DataGrid, Tree, ...). See this example: <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" initialize="populate()"> <mx:Script> <![CDATA[ public var largeArray = new Array(10000); public function populate():Void { for (var i:Number = 0; i < largeArray.length; i++) largeArray[i] = {foo: i, bar: 'a' + i}; } ]]> </mx:Script> <mx:DataGrid creationComplete="event.target.dataProvider = largeArray" /> </mx:Application> It scrolls without any issues on my machine. I increased the array size from 10,000 to 1,000,000 (million), and, while the application took a while to start up, once it did it worked like a charm. Are you using custom cell renderers (not that it matters again)? ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

