3 Replies Latest reply on Apr 22, 2010 5:56 AM by dakasadakasadaka

    delete edit button in datagrid

    dakasadakasadaka

      I'm trying to place delete and edit button to datagrid, but irender and then component with button doesn't work (I'm working with Flex 4 s:application)

       

      So how could I do it?

       

      <mx:DataGrid width="100%" id="comments" dataProvider="{commentsCollection}">


                      <mx:columns>


                              <mx:DataGridColumn headerText="Object Name" dataField="o_name"/>


                              <mx:DataGridColumn headerText="Object Type" dataField="o_type"/>


            <mx:DataGridColumn headerText="Object Country" dataField="o_country"/>


                              <mx:DataGridColumn headerText="Object Place" dataField="o_place"/>


                              <mx:DataGridColumn headerText="Object Address" dataField="o_adress"/>


            <mx:DataGridColumn headerText="Object ZIP" dataField="o_postcode"/>


            <mx:DataGridColumn headerText="Object Nummer" dataField="o_nr"/>


            <mx:DataGridColumn headerText="Edit Object" dataField="o_nr">

        

      <mx:itemRenderer>

      39          <mx:Component>
      40            <mx:LinkButton label="Delete"
      41click="outerDocument.deleteItem(event)"/>
      42          </mx:Component>
      43        </mx:itemRenderer>

            </mx:DataGridColumn>


            <mx:DataGridColumn headerText="Delete Object" dataField="o_nr">


             


              


              


            </mx:DataGridColumn>


                      </mx:columns>