override public function set data(value:Object):void
{
                        super.data = value;
                    if ( listData != null && (listData as
AdvancedDataGridListData).item != null &&
                         (listData as
AdvancedDataGridListData).item.hasOwnProperty("children")
                        && (listData as AdvancedDataGridListData).item.children 
!
= null )
                    {
                        setStyle("color", getStyle("branchColor"));
                    }
                    else
                    {

                        if(value.hasOwnProperty("isdefault") &&
value.hasOwnProperty("istemplate"))
                        {
                                if(value.isdefault == 'Y' && value.istemplate ==
'Template')
                                        this.label.htmlText = "<font 
color='#FF0000'> * </
font>" + value.name;
                                else
                                        this.label.htmlText = value.name as 
String;
                                //setStyle("color", 0xFF0000);

                         }
                   }
}

I have tried with the above code. but no use. "*" is not shown even.

can you plz tell me what's wrong in the above code.


On May 29, 11:01 am, ganesh <[email protected]> wrote:
> One way - In the header renderer user a Label to display header data.
> For the Label use htmlText property to define its label instead of
> text property. Then you can use the html tags to give * in red color
> or whatever formating you want.
>
> On May 28, 10:11 pm, Firoz <[email protected]> wrote:
>
>
>
> > Hi,
>
> >   i am using <mx:AdvancedDataGridGroupItemRenderer> as a renderer for
> > a advanced datagrid.
>
> >  i want to show the text as *somename.  "*" should be in red color.
>
> >  Is it possible using this renderer?
>
> > Any body plz help me.
>
> > Thanks,
> > -Firoz- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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