Yes, that's true.
When assingning event handlers in MXML, the Flex compiler looks for the
Metadata tags defined in the different classes when compiling a SWF. Due
to the fact that the "cellClick" event is not defined inside the
DataGrid class, the compiler complains.
If you want, you could creat
Your code works, I've attached a simple test file.
You just have to make sure that you use
myGrid.addEventListener("cellClick", this);
and not by using the MXML syntax. Otheriwse the compiler will complain
about the fact that DataGrid is not known to dispatch a "cellClick"
event.
BTW, you do
You could make the CheckCellRenderer dispatch an event on the DataGrid,
i.e. inside your CheckCellRenderer:
This will make the DataGrid dispatch a "cellClick" event. To listen to
this event you'll need to add an event listener on the DataGrid
myGrid.addEventListener("cellClick", this);
The
3 matches
Mail list logo