Skip navigation
BBG112
Currently Being Moderated

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

Jan 28, 2014 8:52 PM

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>

 
Replies
  • Currently Being Moderated
    Jan 28, 2014 10:25 PM   in reply to BBG112

    3.2 is pretty old.  I'm not sure ADG shipped with the 3.2 SDK.  It might have been an add-in.

     

    -Alex

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points