Yes, you'll want to use the vPosition property, which is available on all the 
List components, to scroll your List accordingly. 

vPosition can take a value like the row number you want to scroll too. So when 
you set the selectedIndex on your List in the 3rd tab, set the vPosition of 
that List to the same selectedIndex value and the scroller will move there with 
the selected row in view. 

-deepa


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert 
Brueckmann
Sent: Thursday, February 02, 2006 8:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex 1.5 - mx:List selectedIndex question

I have 3 tabs, each tab has a List component, these lists all share the
same dataprovider from the parent application.  

If the user changes their selection in the list on the first tab and
then goes to the 3rd tab, I have a function that sets the selected-index
of the list component on the 3rd tab to the same item the user selected
on the 1st tab...the problem is, the rowCount on the List component it 3
and if the user scrolls down to the 6th item in the List on the first
tab and then goes to the 3rd tab, the 6th item is correctly selected,
but the List component has not scrolled down to the 6th element, the
user has to actually scroll to see that the 6th element is selected in
the List component on the 3rd tab.  

Is there a way to ensure the List component visually scrolls to the
selected-index?

robert l. brueckmann
vice president
merlin securities
595 madison avenue
new york, ny 10022
p: 212.822.4821
f: 212.822.4820

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

This message contains information from Merlin Securities, LLC, or from one of 
its affiliates, that may be confidential and privileged. If you are not an 
intended recipient, please refrain from any disclosure, copying, distribution 
or use of this information and note that such actions are prohibited. If you 
have received this transmission in error, please notify the sender immediately 
by telephone or by replying to this transmission.

Merlin Securities, LLC is a registered broker-dealer. Services offered through 
Merlin Securities, LLC are not insured by the FDIC or any other Federal 
Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC 
and may lose value. Nothing in this communication shall constitute a 
solicitation or recommendation to buy or sell a particular security.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



YAHOO! GROUPS LINKS 

*  Visit your group "flexcoders" on the web.
  
*  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
*  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to