0 Replies Latest reply on Jun 12, 2010 12:02 AM by srinth

    flex 4 Advancedatagrid background

    srinth Level 1

      Hi All,

       

      How to applie background alpha in flex 4 for Advancedatagrid component.

       

      Erorr: Description Resource Path Location Type The style 'backgroundAlpha' is only supported by type 'mx.controls.AdvancedDataGrid' with the theme(s) 'halo'.  

       

       

      Here is the code:

       

      <?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" minWidth="955" minHeight="600">
          <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
         
          <fx:Script>
              <![CDATA[
              import mx.collections.ArrayCollection;
              [Bindable] private var ac:ArrayCollection = new ArrayCollection([
              {revenues:400, costs:300, unit:"machines"},
              {revenues:200, costs:50, unit:"services"},
              {revenues:300, costs:100, unit:"software"}]);
             
              ]]>
          </fx:Script>
         
         
         
          <mx:AdvancedDataGrid x="29" y="27" id="adg1" designViewDataType="tree" dataProvider="{ac}"
                                borderAlpha="0"  backgroundAlpha="0"  contentBackgroundAlpha="0">
              <mx:columns>
                  <mx:AdvancedDataGridColumn headerText="Revenues" dataField="revenues"/>
                  <mx:AdvancedDataGridColumn headerText="Costs" dataField="costs"/>
                  <mx:AdvancedDataGridColumn headerText="Unit" dataField="unit"/>
              </mx:columns>
          </mx:AdvancedDataGrid>
      </s:Application>