flex datagrid background color setting contentBackgroundC

flex datagrid background color setting contentBackgroundC

Postby haretu » Tue Mar 22, 2011 11:33 am

Adobe flex
how to change datagrid background color through setting contentBackgroundColor
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<s:Application name="Halo_DataGrid_contentBackgroundColor_test"
               xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/halo" viewSourceURL="srcview/index.html">
   
    <mx:ApplicationControlBar width="100%" cornerRadius="0">
        <mx:Form styleName="plain">
            <mx:FormItem label="contentBackgroundColor:">
                <mx:ColorPicker id="colorPicker"
                                selectedColor="white" />
            </mx:FormItem>
        </mx:Form>
    </mx:ApplicationControlBar>
   
    <mx:DataGrid id="dataGrid"
                 dataProvider="{Font.enumerateFonts(true)}"
                 contentBackgroundColor="{colorPicker.selectedColor}"
                 alternatingItemColors="[]"
                 horizontalCenter="0" verticalCenter="0" />
   
</s:Application>
Attachments
67_1.JPG
67_1.JPG (41.96 KiB) Viewed 697 times
haretu
 
Posts: 132
Joined: Sat Jan 08, 2011 9:56 pm

Return to Adobe FLEX Flash

Who is online

Users browsing this forum: No registered users and 1 guest

cron