RE: [flexcoders] Re: 3 problems about datagrid ...

2005-09-09 Thread Dirk Eismann
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

RE: [flexcoders] Re: 3 problems about datagrid ...

2005-09-09 Thread Dirk Eismann
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

RE: [flexcoders] Re: 3 problems about datagrid ...

2005-09-08 Thread Dirk Eismann
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