Thanks, Tracy, I have looked into your example.

Here is what I got so far. It compiles fine, but when it runs I dont see 
anything except regular nodes with a text.

package
{
        import mx.controls.treeClasses.*;
        public class treeRendererFilter extends TreeItemRenderer
        {
                private var _oTreeListData:TreeListData;
                public function treeRendererFilter()
                {
                        super();
                }
                override public function set data(value:Object):void 
                {
                super.data = value;
                _oTreeListData = TreeListData(super.listData);
                }       
                override protected function createChildren():void 
                {
                    super.createChildren();
                        var filter:customerReportingFilter = new 
customerReportingFilter(); 
                        addChild(filter);
                        validateDisplayList();
                }
        }
}
//customerReportingFilter
<?xml version="1.0" encoding="utf-8"?>
<mx:FormItem xmlns:mx="http://www.adobe.com/2006/mxml"; height="22" 
        direction="horizontal" visible="true">
        <mx:HBox>               
                <mx:RadioButtonGroup id="reportfilter"/>
                <mx:RadioButton label="Button 1" groupName="reportfilter"/>
                <mx:RadioButton label="Button 2" groupName="reportfilter"/>
        </mx:HBox>      
</mx:FormItem>

// tree definition
<mx:Tree id="customerServiceTree" fontSize="11" width="100%" height="99%"
                                            labelField="@name" textAlign="left" 
itemRenderer="treeRendererFilter" 
                                            
creationComplete="userNavigation(Number(category4.name), customerServiceTree)"
                                            itemClick="itemClickEvt(event);"
                                            showRoot="false" 
borderStyle="solid" borderThickness="1">
                                        </mx:Tree>


--- In [email protected], "Tracy Spratt" <tr...@...> wrote:
>
> I have an example on www.cflex.net <http://www.cflex.net/>  that extends
> TreeItemRenderer and adds the tree sibling lines.  It might be a good
> starting point.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _____  
> 
> From: [email protected] [mailto:[email protected]] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, April 28, 2009 2:42 PM
> To: [email protected]
> Subject: [flexcoders] Tree custom renderer
> 
>  
> 
> 
> 
> 
> 
> 
> I am looking for design ideas to extend an item renderer for a tree control.
> Specifically, I want to have a node that would show a regular label for its
> name plus a radiogroup with 3-4 radio buttons shown horizontally with a
> node. So, the user can specify some filters for an upcoming interface when
> he selects a node.
> 
> Any clue?
> 
> Thanks
>


Reply via email to