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(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)?

  



--
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




Reply via email to