updateComplete will be called several times during the lifetime of a
List.  Your code will have to handle that fact.  If MemberBox
invalidates the List you'll get more than one updateComplete

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of learner
Sent: Thursday, January 31, 2008 9:02 PM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: Re: [flexcomponents] RE: [flexcoders] update complete of list
component

 

I am setting the data provider only once ..
they way i have created list is something like this  : 


            vList = new List();
            vList.itemRenderer = new ClassFactory(MemberBox);
            vList.visible = false;
            vList.addEventListener(FlexEvent.UPDATE_COMPLETE,showList);
           addChild(vList); 
           var watcherSetter:ChangeWatcher =
BindingUtils.bindSetter(setDataProviderList, this, "dataProvider");

-------------------------------

private function setDataProviderList(value:ArrayCollection):void{
         
                    trace("setting dataProvioder");
                    vList.dataProvider = value;
                    invalidateSize();
       }


private function showList(event:FlexEvent):void {
            trace("update complete of member list")
            //vList.visible = true;
            //callSpinner.visible = false;
   }




 The function showList gets called twice... where as the trace "setting
data Provider"  gets displayed only once... please help  




--------------------------------------------

On Fri, Feb 1, 2008 at 12:42 AM, Alex Harui <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

Updatecomplete should work. Depending on when you set the dataprovider
it might get fired more than once.

 

________________________________

From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
[mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ]
On Behalf Of learner
Sent: Thursday, January 31, 2008 4:02 AM
To: [email protected]
<mailto:[email protected]> ; [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
Subject: [flexcoders] update complete of list component

 

Hi all,
Is there any way in which we can find out the list has shown all the
rows in visible area..
I tried to use updateComplete event but..it did not help me much...

Regards
PS

 

 

Reply via email to