Accessing renderer elemnents in AdvancedDataGrid

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Accessing renderer elemnents in AdvancedDataGrid

This post has NOT been accepted by the mailing list yet.
This post was updated on .
Hi Friends,

This is my post in flexcoders..

In the AdvancedDataGridRendererProvider, i have assigned customItemRender for the renderer property.

This is my code:

<mx:AdvancedDataGrid id="productADG" dragEnabled="true" displayItemsExpanded="true"
        dropEnabled="true" variableRowHeight="true"
        headerHeight="40" minHeight="5000" height="1000"
        sortExpertMode="true" width="100%"                                                    
        defaultLeafIcon="{null}" folderOpenIcon="{null}"
        openDuration="400" headerWordWrap="true" >

        <mx:HierarchicalData id="hd" source="{productXML.product}" />

          <mx:AdvancedDataGridColumn dataField="@productName" headerText="Product"  
                 width="120" wordWrap="true"/>
          <mx:AdvancedDataGridColumn dataField="@descriptionTxt" headerText="Description"
                 width="165" wordWrap="true"/>
          <mx:AdvancedDataGridColumn width="145" headerText="Tools" id="toolsCol"

            <mx:AdvancedDataGridRendererProvider id="compRend" depth="2"
                renderer="customItemRender" column="{toolsCol}"/>


<mx:HBox width="100%">
   <mx:Button id="editBtn"/>

How we can access the "editBtn" from the customItemRenderer in the main page(Datagrid resides)

I want to dispatch click event manually from the main page(Datagrid resides)..

Any response for this query will be helpful...

Thanks in advance..