flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kyle McKnight <kamck...@gmail.com>
Subject Re: Listen for the Originator of an Event
Date Tue, 06 Dec 2016 05:42:28 GMT
You could always use a custom event dispatchex from the renderer instead of
the grid selection event. The renderer with the radio button then could
dispatch the event if it was clicked but wasnt a radio buttton click

On Dec 6, 2016 12:38 AM, "bilbosax" <waspence41@comcast.net> wrote:

> I have a DataGrid that has several columns, one of which contains a
> RadioButton in an itemrenderer.  I need to be able to have my program react
> to a selectionChange event in the datagrid.  The problem is that I need to
> know whether the selectionChange event fired because a user clicked on a
> row
> in the dataGrid, which is easy, or whether the selectionChange event fired
> because a user clicked on the RadioButton, which also causes the
> selectionChange event to fire.  The problem is that the SelectionChange
> event is of type GridSelectionEvent.  Unlike a click event, when I look at
> the target for the GridSelectionEvent when a user clicks on the
> RadioButton,
> the target is the dataGrid, not the RadioButton. Is there an inherited
> property in the event structure that can let you dig down and actually find
> the click event that triggered the SelectionChange event, and therefore the
> target of the click?
> A little confusing, I know.  Simplified, when a user clicks on my dataGrid
> which fires the SelectionChange event, I need to know whether they clicked
> on a row in the dataGrid or on a RadioButton in the dataGrid from the
> SelectionChange Event.
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/Listen-for-the-Originator-of-an-Event-tp14290.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message