Re: [flexcoders] Flex DataGrid with large recordset
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(1); 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/
Re: [flexcoders] Flex DataGrid with large recordset
I have always had list performance issues. Flash 8 helped a bit. But to reproduce just change your datagrid tag to this: mx:DataGrid creationComplete="event.target.dataProvider = largeArray" height="100%" The scroll will act chunky. Turn on variable height and column wrapping, a few more columns, some that are cellrenderer based, and you can easily get to a point where more than 200 records is unusable. Manish Jethani wrote: 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(1); 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)? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex DataGrid with large recordset
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? 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/
RE: [flexcoders] Flex DataGrid with large recordset
Try adding liveScrolling=false to the datagrid. That will make the datagrid scroll without redrawing as it is scrolling. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sergei_tsoganov Sent: Thursday, September 29, 2005 2:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex DataGrid with large recordset 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? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.