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]> wrote:
> Updatecomplete should work. Depending on when you set the dataprovider
> it might get fired more than once.
>
>
> ------------------------------
>
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *learner
> *Sent:* Thursday, January 31, 2008 4:02 AM
> *To:* [email protected]; [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
>
>
>