If the click event triggers the selectionChange event then can you listen for a click on the radio button and stop propogration of the click? Or does the selectionChange still get fired?
Also, if you go with a custom event, you can use the ArrayList/Collection getItemIndex(ob:Object) method to get the selection index. So in your custom event handler, you would do var selectedIndex:int = dataGrid.dataProvider.getItemIndex(event.target.data) Kyle McKnight Senior UI Engineer - Accesso 602.515.1444 (M) On Tue, Dec 6, 2016 at 7:54 AM, bilbosax <[email protected]> wrote: > Perhaps. The problem is that I need the selectionChange event because I > need > the selectedIndex of the grid which I found is not available yet when you > react to a click event. The click event triggers the selectionChange event > which then allows you to get the selectedIndex. I've been tossing this > around in my sleep and I suppose I might be able to dispatch a custom > event, > but it would have to fire a few milliseconds after the actual click event > so > that the selectedIndex has a chance to be updated, so I might be able to > fire the custom event using callLater(), I just don't know if this will > give > me the time that I will need. I guess the original question could be stated > like this: There is an awful lot of information available in an an event > that the average programmer is unaware of. Is there a property available > that defines the originator of an event such as: > > event.target.originatorofevent.id = "myRadioButton" > > > > -- > View this message in context: http://apache-flex-users. > 2333346.n4.nabble.com/Listen-for-the-Originator-of-an- > Event-tp14290p14294.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. >
