You can provide your own renderer via the property: groupItemRenderer="" .
Create your own renderer by extending AdvancedDataGridGroupItemRenderer

Like in following example:
http://xtrace.blogspot.com/2011/09/flex-advanceddatagrid-changing.html

On Mon, Sep 19, 2011 at 2:12 AM, Ravi <[email protected]> wrote:

> Hello Friends,
>
> I need to add checkbox in Advanced Datagrid column with herarchical
> data.
> I add ItemRenderer with checkbox but it only applys to childrens, i
> needthose checkbox in root node also.
> Can anyone please help me in this
>
> Below is my code:
>
> <?xml version="1.0"?>
> <!-- dpcontrols/adg/SimpleHierarchicalADG.mxml -->
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
>
>  <mx:Script>
>    <![CDATA[
>          import mx.collections.ArrayCollection;
>
>          //include "SimpleHierarchicalData.as";
>
>          [Bindable]
>                        private var dpHierarchy:ArrayCollection = new
> ArrayCollection([
>                          {Region:"Southwest", children: [
>                                {Region:"Ravi", Territory_Rep:"Barbara
> Jennings", Actual:
> 38865, Estimate:40000},
>                                {Region:"Chorge", Territory_Rep:"Dana Binn",
> Actual:29885,
> Estimate:30000}]},
>                        ]);
>
>
>
>
>      ]]>
>    </mx:Script>
>
>    <mx:AdvancedDataGrid width="100%" height="100%" >
>        <mx:dataProvider>
>            <mx:HierarchicalData source="{dpHierarchy}"/>
>        </mx:dataProvider>
>        <mx:columns>
>            <mx:AdvancedDataGridColumn dataField="Region" >
>                <mx:itemRenderer>
>                                                <mx:Component>
>                                                        <mx:HBox
> horizontalAlign="left" verticalAlign="middle">
>
>  <mx:CheckBox/>
>                                                                <mx:Label
> id="itemName" text="{data.Region}" />
>                                                        </mx:HBox>
>                                                </mx:Component>
>                                </mx:itemRenderer>
>            </mx:AdvancedDataGridColumn>
>            <mx:AdvancedDataGridColumn dataField="Territory_Rep"/>
>            <mx:AdvancedDataGridColumn dataField="Actual"/>
>            <mx:AdvancedDataGridColumn dataField="Estimate"/>
>        </mx:columns>
>    </mx:AdvancedDataGrid>
> </mx:Application>
>
>
>
> Thanks
> Ravindra
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to