got it...
I changed my code and checked if the lenght of the dataprovider is greater
than 0....
but thats a kinda of hack which i did not like ....:(

On Feb 1, 2008 12:37 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

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