Ok, here is the problem I am having. I am trying to use a
datagrid and when an user clicks on an entry it takes them to
another "state" where it desplays more information. The problem I
have is that it happens whenever a user clicks on the chart column
headers (you know, when they are trying to sort them). Is there any
way I can stop this from happening. Only opening the other state
when a data entry is clicked just not anywhere in the datagrid.
Here is the code I am currently using.
1) try to use itemClick instead of click event as it gives
2) move your itemClick event to method of it's own. e.g.
3) in your showDetail method check that rowIndex > 0
before you switch states
Ok, I was able to figure it out. I needed to use the
doubleclick. Now when the sort the data (with a single click) it
sorts the data without opening the ViewMessages state. Now, the
user can doubleclick on an entry and it still do what it needs to
Here is the new code:
<mx:DataGrid x="0" y="0" width="347" height="323"
<mx:DataGridColumn headerText="User" dataField="USER"/>