1 Reply Latest reply on Sep 7, 2009 3:28 AM by Ashudeep Sidana

    get a field from an advanced dataGrid

    quebequiano Level 1



      I have an AdvanceDataGrid. I have some fields: UserId, UserName, Phone.... I want to get as a String the field UserId of the selected row in the dataGrid. How can i do it????

        • 1. Re: get a field from an advanced dataGrid
          Ashudeep Sidana Level 1

          On click of selected row you can use List event and get the required data


          public function onItemClick(event ListEvent):void{

               var userId:String = event.itemRenderer.data.userId as String ;




          You can use this variable however you want .


          Use itemClick  property of AdvancedDataGrid



          Hope this will help !!!