Can't change AdvancedDataGrid Header Text Color
hello,
i'm having annoying problem styling advanceddatagrid header text colors. regular datagrid can use property called "headerstylename" set color of header text. according documentation style applicable advanceddatagrid well. can see here:
http://help.adobe.com/en_us/flashpla...eaderstylename
here sample app show i'm talking about. notice both grids share same style normal grid apply it.
<?xml version="1.0" encoding="utf-8"?> <s:application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <s:layout> <s:verticallayout paddingtop="10" paddingright="10" paddingbottom="10" paddingleft="10" /> </s:layout> <fx:style> @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; .headerstyle { color: #ff0000; fontweight: bold; } </fx:style> <mx:datagrid width="100%" height="100%" headerstylename="headerstyle"> <mx:columns> <mx:datagridcolumn headertext="header 1" /> <mx:datagridcolumn headertext="header 2" /> </mx:columns> </mx:datagrid> <mx:advanceddatagrid width="100%" height="100%" headerstylename="headerstyle"> <mx:columns> <mx:advanceddatagridcolumn headertext="header 1" /> <mx:advanceddatagridcolumn headertext="header 2" /> </mx:columns> </mx:advanceddatagrid> </s:application>
this driving me nuts have use advanced data grids because of added functionality. appreciate solutions this.
i not sure why not working, works
mx|advanceddatagridheaderrenderer { color: #ff0000; fontweight: bold; }
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment