Flex Array of buttons in datagrid
-
14-01-2022 - |
Question
I have an ExtendedAdvancedDataGrid with a column which has toggle buttons in it (here is a snippet of the mxml code):
<columns:ExtendedAdvancedDataGridColumn id="toggle" sortable="false" editable="false" headerText="Sort" dataField="include_order" columnWidthMode="fixed" width="60">
<columns:itemRenderer>
<fx:Component>
<mx:VBox verticalAlign="middle" horizontalAlign="center">
<s:ToggleButton id="sortToggle" label="OFF" width="55" color="white" chromeColor="red" selected="false" click="outerDocument.sortToggle_click(event)"/>
</mx:VBox>
</fx:Component>
</columns:itemRenderer>
</columns:ExtendedAdvancedDataGridColumn>
When the user clicks one of the buttons, it calls function sortToggle_click(). I want that function to be able to access the label of the SECOND button in the list not matter which button was clicked. How do I access that particular button label in the function?
Thanks.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow