1 Reply Latest reply on Sep 11, 2008 8:50 AM by ugrowemweschickm

    Using listening for undocumented events in flex framework

      I needed to find out when the columns on a DataGrid change (as in a column is added or removed at runtime). So I looked at the api but found no events for DataGrid that relate. So I started poking around in the source code for DataGrid and found that when someone sets the columns ( myDataGrid.columns = someArrayOfColumns ) an event is dispatched named "columnsChanged". But the line itself is just:

      dispatchEvent(new Event("columnsChanged"));

      There is no constant used to represent the name, which is how all documented events in the flex framework are written. So, should I find a different way of doing this, or is it generally accepted that sometimes you need to dig around in the flex sourcecode to use some undocumented features?