1 Reply Latest reply on Mar 19, 2008 5:47 AM by Gregory Lafrance

    Datagrid click target state event

      Hey all,

      I'm trying to understand how I can make a button which is populated through the itemRenderer tag change the current state of my application. Inside one of my Data Grid Columns, I have the following code:

      <mx:Button label="Remove" click="target.currentState='edit'" />

      When I click the button, it tells me that the 'edit' state can not be found. Before you ask - yes, the 'edit' state does exist and I've tested it through another method call in my application. Please let me know if you have an idea on how to change the current state of my application on a click event in the mx:Component tag. An example would be appreciated.