There's a lot simpler way to accomplish this. Use your list data
provider and check its length property as a binding constraint to your
dropEnabled property:

dropenabled="{myDataProvider.length == 0)}"

R. Grimes


> > --- In [email protected] <mailto:flexcoders%
> 40yahoogroups.com> , "jmfillman" <jmfillman@> wrote:
> > >
> > > I'm having difficulty in determining if a list has any items
> already
> > in
> > > the list. For example, if a list already has 1 item, I want to
> set
> > it's
> > > dropEnabled property to false, either when the item is added to
> the
> > > list or when the user attempts to drop a 2nd item. Also, if that
> item
> > > is removed from the list, I want to set dropEnabled to true.
> > >
> >
>



Reply via email to