2 Replies Latest reply on Oct 23, 2009 12:06 PM by ma.tze

    How to test against dataGrid.columns[i].itemEditor.generator?

    ma.tze

      Hi,

       

      how can I found out which itemEditor (or itemRenderer) is used for a certain DataGrid Column?

       

      I found the property:

       

      dataGrid.columns[i].itemEditor.generator

       

      In a debug session I can see for example  "mx.controls.TextInput". Wundefull, I need this information, but how to acces it?

       

      I tried this:

       

      switch (dataGrid.columns[i].itemEditor.generator.toString()){  
                          case "mx.controls.TextInput":
                              break;
                          case "mx.controls.TextInput$":
                              break;
                          default:
                              break;
                      }

       

      but

      (dataGrid.columns[i].itemEditor.generator.toString() gives me always "[class TextInput]"

       

      An other solution:

      typeof dataGrid.columns[i].itemEditor.generator only gives me back "object"

       

      Thanks for any pointers!

       

      Martin Zach