Jean-Luc,

 

How about if you initialize the DataGrid’s visible property to false until the data is loaded, and write a handler for the complete event of the URLLoader class that sets the DataGrid’s visible property to true when all the data is loaded? Would that work? Docs on the complete event:

 

http://livedocs.macromedia.com/labs/1/flex/langref/flash/net/URLLoader.html#event:complete

 

Jim

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Jean-Luc ESSER
Sent: Friday, June 09, 2006 8:47 AM
To: [email protected]
Subject: Re: [flexcoders] Event when Data is Loaded ?

 

Nope, this won't work as the updateComplete event is dispatched xx times during the process !

No way to identify which one is the last one.

 

Anyone ?

 

JL

 

 

----- Original Message -----

From: Dirk Eismann

Sent: Friday, June 09, 2006 2:04 PM

Subject: RE: [flexcoders] Event when Data is Loaded ?

 

You may want to try the updateComplete() event:

<mx:DataGrid updateComplete="doStuff()" dataProvider="{dp}"/>

this should get called after the DataGrid has updated itself due to
internal commitProperties(), measure(), or updateDisplayList() calls.

Dirk.

__._,_.___

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