This example may help get you started:

http://tutorial7.flexcf.com/


Paul
http://blog.kukiel.net

On Wed, Sep 9, 2009 at 4:39 PM, turbo_vb <[email protected]> wrote:

>
>
> Hi Larry,
>
> Usually this type of thing is done with a filterFunction on the
> dataProvider; which would eliminate items that don't match the criteria and
> place the first match at the top of the DataGrid. But, if you want to have
> the other items remain, you'll have to loop through the dataProvider to
> obtain the index of the first matching item. Then either use
> myDataGrid.scrollToIndex( myIndex ), or myDataGrid.verticalScrollPosition =
> myIndex. Better user experience though if you use something like Tweener to
> scroll gracefully.
>
> -TH
>
> --- In [email protected] <flexcoders%40yahoogroups.com>, Laurence
> MacNeill <lmacne...@...> wrote:
> >
> > Hi,
> >
> > I have a DataGrid that contains a long (sometimes VERY long) list of
> > names -- anywhere from a couple hundred to over 5,000. I need to be
> > able to allow the user to "search" this list by typing a name (or
> > part of a name) into a TextInput and clicking a button.
> >
> > Implementing the TextInput and the Button are no problem of course,
> > but how do I get the DataGrid to scroll down to the closest match in the
> list?
> >
> > Thanks,
> >
> > Laurence MacNeill
> > Mableton, Georgia, USA
> >
>
> 
>

Reply via email to