1 Reply Latest reply on Feb 9, 2010 10:18 AM by Flex harUI

    Regarding States Changed

    venkatsyss

      My Question i had defined states name called edit.When a user is clicked in the dataprovider the state name have been changed.Please find me the solution.

       

      <mx:DataGrid id="uRequest" dataProvider="{userRequest.lastResult.users.user}"
         
          itemClick="itemClickEvent(event);">

       

      <mx:states>
          <mx:State name="edit">
          <mx:AddChild>
              <mx:FormItem label="Username"></mx:FormItem>
              <mx:TextInput></mx:TextInput>
          </mx:AddChild>
             
          </mx:State>
          </mx:states>

       

      <mx:Script>
              <![CDATA[
                  import mx.events.ItemClickEvent;
                  import mx.rpc.events.ResultEvent;
                  import mx.controls.Alert;
                  import mx.events.ListEvent;
                  private var clickColumn:String;
                
                 
                  public function itemClickEvent(event:ListEvent):void{
                      //Alert.show('hi');
                      currentState='edit';
                     
                  }
                 
                 
              ]]>
         
          </mx:Script>

       

      Please find me the solutions.

       

      Thanks and Regards,

      venkat.R