0 Replies Latest reply on May 24, 2010 12:09 PM by alexlizn

    tweak Advanced Data Grid rows


      I have an 'Add' button on my page which has an Advanced Data Grid. When users click the button, a new row is created. I wanna the new row to be populated with some data from the previously selected row.


      here is some of my code, but it didn't work, do you see why?


      protected function Add_Btn_clickHandler(event:MouseEvent):void
                      address = new Address();
                      createAddressResult.token = territoryServiceDestination.createAddress(address);
      protected function createAddressResult_resultHandler(event:ResultEvent):void
                      adg1.dataProvider.addItemAt(address, adg1.selectedIndex);
                      adg1.selectedItem = address;
                      adg1.selectedItem.city = 'Los Angeles'
                      adg1.selectedItem.state = 'CA'