sorry, It should be like this:

To follow the question regrading to the scrollToIndex,

give an XML structure as the following:

<emps>
  <emp id="1" firstname="amy"/>
  <emp id="2" firstname="john"/>
  <emp id="3" firstname="steve"/>
</emps>

and bind it to the mx:Tree or mx:Datagrid.

How do I retrieve the display index of  the <emp id="3" firstname="steve"/> 
from Actionscript in Flex 2.




----- Original Message ----
From: seng ung <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, January 22, 2007 9:32:48 AM
Subject: Re: [flexcoders] Re: scrollToIndex just won't work ... any workarounds 
?

To foolw a question from scrollToIndex:
Given the XML structure as following
<emps>
  <emp id="1" firstname="amy" />
  <emp id="2" firstname="john" /> 
  <emp id="3" firstname="steve" />
</emps>
from the mx:Tree or mx:Datagrid
how do you the index of id=3 in Actionscript?
 

 
----- Original Message ----
From: amigo_fd <[EMAIL PROTECTED] be>
To: [EMAIL PROTECTED] ups.com
Sent: Sunday, January 21, 2007 9:30:15 PM
Subject: [flexcoders] Re: scrollToIndex just won't work ... any workarounds ?


found a solution: dg.validateNow( )

blog-example with and without the validate are available here:

http://flextricks. wordpress. com/

--- In [EMAIL PROTECTED] ups.com, "amigo_fd" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> Any ideas why scrollToIndex won't work ? Tried it on a tilelist,
> datagrid, ... all without any result. Not even an error message !
> 
> 
> This works, as the last item is selected in the tilelist:
> 
> tlProductsSearchRes ults.selectedInd ex =
> tlProductsSearchRes ults.dataProvide r.length - 1;
> 
> 
> But this one doesn't do a thing:
> 
>
tlProductsSearchRes ults.scrollToInd ex(tlProductsSea rchResults. dataProvider. 
length
> - 1);
> 
> Best regards,
> Frank
>







Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games. 



 
____________________________________________________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/

Reply via email to