13 charts is quite a bit of stuff, especially if you have ticks on the axes. The total number of shapes affects rendering performance. updateDisplayList can get called multiple times and can get optimized to only get called once. The key is to make sure the dataProvider does not change, and that your renderers do not invalidate the DataGrid. If the dataProvider is assigned via binding you'll get two calls to updateDisplayList. If the data is coming off a server, you pretty much have no choice and will get called twice. If you are seeing more calls than that, then your renderers are invalidating. Watch for calls to invalidateDisplayList, invalidateSize and invalidateProperties and make sure none of them are getting called during the renderer's updateDisplayList. -Alex
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of arpan srivastava Sent: Monday, December 18, 2006 7:16 PM To: [email protected] Subject: Re: [flexcomponents] datagrid takes lot of time to load ? there are 13 rows displayed at one time and row contains both the charts. In line chart I am using Line Chart of flex and in gauge i am drawing four rectangles. what i saw is updateDisplayList() where i am drawing the chart,is called many number of times , is there anyway i can reduce the number of calls to this function. ----- Original Message ---- From: Alex Harui <[EMAIL PROTECTED]> To: [email protected] Sent: Tuesday, December 19, 2006 12:26:14 AM Subject: RE: [flexcomponents] datagrid takes lot of time to load ? How many linecharts and gauges are on screen at once? If you just have gauges and no linecharts is it really fast? How about the other way around? If you have as many charts and gauges on screen w/o a datagrid is it just as slow? You’ll need to find out what renderer is slow and start to optimize. ________________________________ From: flexcomponents@ yahoogroups. com [mailto: flexcomponents@ yahoogroups. com ] On Behalf Of arpan srivastava Sent: Sunday, December 17, 2006 11:46 PM To: Flex Components Subject: [flexcomponents] datagrid takes lot of time to load ? Hi, I have a datagrid in which one column contains a line chart and other column contains a custom designed gauge. My problem is that it takes a lot of time loading, and same time when you resize the application, is there any way I can reduce this time. ____________ _________ _________ _________ _________ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
