This content has been marked as final. Show 4 replies
You haven't assigned an event listener to that DataGrid. All you've done is dispatch an event. You'll also need to use addEventListener.
The event listener was added during the DataGrid Constructor, are you saying I have to add it again to the DataGrid or add it to my customClass?
So you have done something like this:
var dg:DataGrid = new DataGrid();
dg.addEventListener( DataGridEvent.HEADER_RELEASE, someHandlerFunction )
If you look at the DataGrid class, in the constructor it is adding event listners
-------- CODE ------------
public function DataGrid()
_columns = ;
// pick a default row height
// Register default handlers for item editing and sorting events.
------------ End Of CODE ---------------
So I am trying to dispatch the HEADER_RELEASE event so the headerReleaseHandler function gets called (for datagrid column sorting)
I'm still not sure why it doesnt see the event listner, so any more help is greatly appreciated.