You probably want to get the selectedItem and then look for it in your data 
provider using indexOf, getItemIndex,..

- Ivo



----- Original Message ----
From: Howard Fore <[EMAIL PROTECTED]>
To: Flexcoders <[email protected]>
Sent: Friday, August 29, 2008 7:24:29 AM
Subject: [flexcoders] How to get selectedIndex from itemRenderer


Hey,

I've got a DataGrid that's using an inline itemRenderer of a ComboBox for one 
of the DataGridColumns. How can I get the selectedIndex of that ComboBox? 
There's a default sort on the DataGrid and the DataGrid is user-sortable as 
well, so the selectedIndex isn't going to mirror the index of the selected row 
in the DataGrid. I need it to pass to a ComboBox in a popup that will appear 
when the user double clicks it.

-- 
Howard Fore, howard.fore@ hofo.com
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood
    

Reply via email to