1 Reply Latest reply on Jan 28, 2014 10:25 PM by Flex harUI

    Error: Could not resolve <mx:AdvancedDataGrid> to a component implementation.

    BBG112

      while try to run this code in flex3.2sdk

      <?xml version="1.0"?>

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

       

          <mx:Script>

              <![CDATA[

                  import mx.collections.ArrayCollection;

       

                  [Bindable]

                  private var dpFlat:ArrayCollection = new ArrayCollection([

                    {Region:"Southwest", Territory:"Arizona",

                        Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000},

                    {Region:"Southwest", Territory:"Arizona",

                        Territory_Rep:"Dana Binn", Actual:29885, Estimate:30000}, 

                    {Region:"Southwest", Territory:"Central California",

                        Territory_Rep:"Joe Smith", Actual:29134, Estimate:30000}, 

                    {Region:"Southwest", Territory:"Nevada",

                        Territory_Rep:"Bethany Pittman", Actual:52888, Estimate:45000}, 

                    {Region:"Southwest", Territory:"Northern California",

                        Territory_Rep:"Lauren Ipsum", Actual:38805, Estimate:40000},

                    {Region:"Southwest", Territory:"Northern California",

                        Territory_Rep:"T.R. Smith", Actual:55498, Estimate:40000}, 

                    {Region:"Southwest", Territory:"Southern California",

                        Territory_Rep:"Alice Treu", Actual:44985, Estimate:45000},

                    {Region:"Southwest", Territory:"Southern California",

                        Territory_Rep:"Jane Grove", Actual:44913, Estimate:45000}

                  ]);

              ]]>

          </mx:Script>

       

          <mx:Panel title="AdvancedDataGrid Control Example"

              height="75%" width="75%" layout="horizontal"

              paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">

       

              <mx:AdvancedDataGrid id="myADG"

                  width="100%" height="100%"

                  initialize="gc.refresh();">       

                  <mx:dataProvider>

                      <mx:GroupingCollection id="gc" source="{dpFlat}">

                          <mx:grouping>

                              <mx:Grouping>

                                  <mx:GroupingField name="Region"/>

                                  <mx:GroupingField name="Territory"/>

                              </mx:Grouping>

                          </mx:grouping>

                      </mx:GroupingCollection>

                  </mx:dataProvider>       

       

                  <mx:columns>

                      <mx:AdvancedDataGridColumn dataField="Region"/>

                      <mx:AdvancedDataGridColumn dataField="Territory"/>

                      <mx:AdvancedDataGridColumn dataField="Territory_Rep"

                          headerText="Territory Rep"/>

                      <mx:AdvancedDataGridColumn dataField="Actual"/>

                      <mx:AdvancedDataGridColumn dataField="Estimate"/>

                  </mx:columns>

             </mx:AdvancedDataGrid>

          </mx:Panel>

       

      </mx:Application>