I have this code in flex:
<mx:Application ... >
....
<mx:DataGrid id="filtros" styleName="grid" rowCount="10" dataProvider="{_larcFiltros}" allowMultipleSelection="true" >
<mx:columns>
<mx:DataGridColumn dataField="titulo" textAlign="left">
<mx:headerRenderer>
<mx:Component>
<mx:HBox width="100%" horizontalAlign="left" >
<mx:CheckBox click="outerDocument._mCheckAll(0)" />
<mx:Label text="Título" />
</mx:HBox>
</mx:Component>
</mx:headerRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText="Descripción" dataField="resumen"/>
...
</mx:Application>
When I click in the checkbox I don't want the column to sort, but when I click outside of checkbox, in the header I want to sort. How do I find out if I've clicked in the checkbox or outside of the checkbox when clicking the header?
Any ideas?
Thanks a lot!