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. Yahoo! Groups Sponsor ~-- Protect your PC from spy ware with award winning anti spy technology. It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/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] 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 To: flexcoders@yahoogroups.com 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 tointernal 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 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. __,_._,___
RE: [flexcoders] Event when Data is Loaded ?
Jean-Luc, How about if you initialize the DataGrids visible property to false until the data is loaded, and write a handler for the complete event of the URLLoader class that sets the DataGrids 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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jean-Luc ESSER Sent: Friday, June 09, 2006 8:47 AM To: flexcoders@yahoogroups.com 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 To: flexcoders@yahoogroups.com 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 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. __,_._,___
Re: [flexcoders] Event when Data is Loaded ?
I'm not loading data via URLLoader. Maybe you got me wrong. Sorry if i wasn't clear. Whichever data is sent to my DataGrid's dataProvider, i want to handle an event after the datagrid has loaded all this data. In my specific case, my dataProvider is binded to a valueObject in the ModelLocator (cairngorm). On creationComplete, my DataGrid dispatches an event which calls a command to populate my ValueObject. I want my DataGrid to become visible once all data has been loaded, and once all its itemRenderers have been populated. Best, JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 1:32 PM Subject: RE: [SPAM] [flexcoders] Event when Data is Loaded ? Jean-Luc, How about if you initialize the DataGrids visible property to false until the data is loaded, and write a handler for the complete event of the URLLoader class that sets the DataGrids 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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jean-Luc ESSERSent: Friday, June 09, 2006 6:29 AMTo: flexcoders@yahoogroups.comSubject: [SPAM] [flexcoders] Event when Data is Loaded ? Hi there, I'm trying to show a component on stage only when its dataProvider hasfinished populating the component. Let's take for exemple a datagrid with an itemRenderer. How would i set my datagridproperty to visible only when all data from its dataProvider has been loaded and its itemRenderers have been layed out ? None of the events avalaible are made for that. Render Event would be the closest, but it's not made for that. Any ideas ? Best, Jean-Luc. __._,_.___ -- 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. __,_._,___