AdvancedDataGrid isItemSelected  ?

I am trying to modify an itemrenderer used previously for
dataGrid in a new AdvancedDataGrid. I am not having much luck
getting the listData.owner .......here is a section of the code -
please set me straight as to what I am doing wrong.
dataProvider is a GroupingCollection.....
<mx:dataProvider>
<mx:GroupingCollection id="gc" source="{myPubsAC}">
<mx:grouping>
<mx:Grouping>
<mx:GroupingField name="type"/>
</mx:Grouping>
</mx:grouping>
</mx:GroupingCollection>
</mx:dataProvider>
Thanks
itemRenderer snippet.............
import mx.controls.AdvancedDataGrid
import mx.controls.AdvancedDataGridBaseEx
import
mx.controls.advancedDataGridClasses.AdvancedDataGridListData
import
mx.controls.advancedDataGridClasses.AdvancedDataGridBaseSelectionData
private var _data:String;
private var _listData:AdvancedDataGridListData
private var thisApp = mx.core.Application.application
private var adg;
private var _list
override public function set data(value:Object):void{
super.data = value;
if(value){
this._data = value.toString();
public function get listData():AdvancedDataGridListData{
return _listData;
public function set
listData(value:AdvancedDataGridListData):void{
_listData = value as AdvancedDataGridListData;
override protected function
updateDisplayList(uw:Number,uh:Number):void{
super.updateDisplayList(uw,uh);
adg = AdvancedDataGrid(_listData.owner) // always null ????
if(adg){
if(adg.isItemSelected(data)){
cur.alpha = 1
if(adg.isItemSelected(data)==false){
cur.alpha = .2;
if(data.mzID == thisApp.master.default_mzID){
fav.alpha = 1;
}else{
fav.alpha = .2;
}

"[email protected]" <[email protected]>
wrote in message
news:gc2m3o$6ci$[email protected]..
> AdvancedDataGrid is not part of the Flex SDKs that are
found there:
>
http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK
>
> - Where can we find new versions of the
AdvancedDataGrid?
> - Where can we see the bugs that have been fixed in new
versions of the
> AdvancedDataGrid?
http://blogs.adobe.com/flexdoc/2008/04/extracting_data_visualization.html

Similar Messages

  • Using DoubleClick and DragManager together in Flex AdvancedDataGrid

    Hi All,
    I have encountered a problem while implementing a DOUBLE_CLICK to the item in an AdvancedDataGrid.
    Scenario:
    I have an AdvancedDataGrid called aGrid. I need to implement DOUBLE_CLICK to the items in an AdvancedDataGrid.
    I have implemented drag functionality in the AdvancedDataGrid.
    [BINDABLE]
    private var _gridColumns:Array = new Array();
    private var aGrid:AdvancedDataGrid = new AdvancedDataGrid();
    I use the following code inside the constructor function
    this.aGrid.columns = this._gridColumns;
    this.aGrid.doubleClickEnabled=true;
    this.aGrid.selectionMode="singleCell"
    this.aGrid.dragEnabled = true;
    this.aGrid.addEventListener(ListEvent.ITEM_DOUBLE_CLICK,testDoubleClick);
    this.aGrid.addEventListener(MouseEvent.MOUSE_DOWN,dragIt);
    this.addColumn(" ","@name"); /*Used to add Columns in the Datagrid*/
    //Also used the following functions
    private function testDoubleClick(e:ListEvent):void
                var item:Object = AdvancedDataGrid(e.currentTarget).selectedItem;
                Alert.show(ObjectUtil.toString(item));
    private function addColumn(title:String, dataField:String, editable:Boolean = false):void
                var newColumn:AdvancedDataGridColumn = new AdvancedDataGridColumn(title);
                newColumn.dataField = dataField;
                newColumn.editable = editable;
                newColumn.rendererIsEditor = editable;
                this._gridColumns.push(newColumn);
    private function dragIt(event:MouseEvent):void
                var adDataGrid:AdvancedDataGrid = event.currentTarget as AdvancedDataGrid;
                if(adDataGrid.isItemSelected(adDataGrid.selectedItem))
                    var di:* = event.currentTarget;
                    var item:Label = new Label();
                    item.text = adDataGrid.selectedItem.@name;   
                    item.setStyle('paddingTop',adDataGrid.mouseY-5);
                    item.setStyle('paddingLeft',adDataGrid.mouseX-5);
                    var ds:DragSource = new DragSource();
                    ds.addData(adDataGrid.selectedItem.@objecttype, 'type');
                    ds.addData(adDataGrid.selectedItem, 'data');
                    ds.addData(this, 'externalData');
                    DragManager.doDrag(di, ds, event, item);
    Issue:
    There is a conflict occuring between the drag and the double click. If I try this code the drag functionality is not getting worked.
    The result needed is both the Double Click and drag functionality should work fine.
    Please help to resolve this issue. Awaiting reply.

    I don't understand the question.  DOUBLE_CLICK implies a mouseDown, mouseUp,
    mouseDown, mouseUp in a short period of time.  It won't fire unless the
    mouse is up so it won't ever be down after it fires.

  • How to hide itemRenderers in the Grouped rows of an AdvancedDataGrid?

    I am using an AdvancedDataGrid and showing a comboBox as the itemRenderer and also the editRenderer. However I am seeing the combobox in the grouped rows also. Below is the code I am using and also attached the screenshot of the app. Please help.
    TestAdvGridGrpRen.mxml
    ===================
    <?xml version="1.0"?>
    <!-- dpcontrols/adg/SummaryGroupADGCustomSummary.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
                import mx.collections.IViewCursor;   
                import mx.collections.SummaryObject;
    [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}
                // Callback function to create
                // the SummaryObject used to hold the summary data.
                private function summObjFunc():SummaryObject {
                    // Define the object containing the summary data.
                    var obj:SummaryObject = new SummaryObject();
                    // Add a field containing a value for the Territory_Rep column.
                    obj.Territory_Rep = "Alternating Reps";
                    return obj;
                // Callback function to summarizes
                // every other row of the Actual sales revenue for the territory.
                private function summFunc(cursor:IViewCursor, dataField:String,
                    operation:String):Number {
                    var oddCount:Number = 0;
                    var count:int = 1;
                    while (!cursor.afterLast)
                        if (count % 2 != 0)
                            oddCount += cursor.current["Actual"];
                        cursor.moveNext();
                        count++;
                    return oddCount;
          ]]>
        </mx:Script>
        <mx:AdvancedDataGrid id="myADG"
            width="100%" height="100%"
            initialize="gc.refresh();">      
            <mx:dataProvider>
                <mx:GroupingCollection id="gc" source="{dpFlat}">
                    <mx:Grouping>
                       <mx:GroupingField name="Region"/>
                       <mx:GroupingField name="Territory">
                          <mx:summaries>
                             <mx:SummaryRow summaryObjectFunction="summObjFunc"
                                summaryPlacement="first">
                                <mx:fields>
                                   <mx:SummaryField dataField="Actual" summaryFunction="summFunc"/>
                                </mx:fields>
                             </mx:SummaryRow>
                          </mx:summaries>
                       </mx:GroupingField>
                    </mx:Grouping>
                </mx:GroupingCollection>
            </mx:dataProvider>      
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="Region"/>
                <mx:AdvancedDataGridColumn dataField="Territory_Rep"
                    headerText="Territory Rep"/>
                <mx:AdvancedDataGridColumn headerText="Actual" dataField="Actual"
                rendererIsEditor="true"
                itemRenderer="TestStatusTypeEditor"
                editorDataField="type"/>
                <mx:AdvancedDataGridColumn dataField="Estimate"/>
            </mx:columns>
       </mx:AdvancedDataGrid>
    </mx:Application>
    TestStatusTypeEditor.mxml
    ====================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="OnInit()" >
    <!-- This is the content of the ComboBox.
    <mx:dataProvider>
    <mx:Object label="Cog" />
    <mx:Object label="Sproket" />
    </mx:dataProvider>
    -->
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
            [Bindable]
            public var cards:ArrayCollection = new ArrayCollection(
                [ {label:"38865", data:1},
                  {label:"29885", data:2},
                  {label:"29134", data:3},
                  {label:"52888", data:4},
                  {label:"38805", data:5},
                  {label:"55498", data:6},
                  {label:"44985", data:7},
                  {label:"44913", data:8}]);
    private function OnInit():void
    dataProvider = cards;
    * This override of set data compares the data.label against the label property
    * of each item in the dataProvider (above). This code is written a bit more
    * generically than necessary, but it would allow you to have a long list
    * in the dataProvider and not have to change this code.
    override public function set data(value:Object):void
    super.data = value;
    var list:ArrayCollection = dataProvider as ArrayCollection;
    for(var i:int=0; i < list.length; i++)
    if( String(value.statusName) == list[i].label ) {
    selectedIndex = i;
    * This getter is the one identified as the editorDataField in the list for
    * the itemEditor.
    public function get type() : String
    if( selectedItem ) {
    return selectedItem.label;
    else {
    return null;
    ]]>
    </mx:Script>
    </mx:ComboBox>

    Solved this issue by using mx:rendererProviders element for my AdvancedGrid. Using the depth parameter gives me the ability to hide the itemRenderer for the Grouped rows.
        <mx:AdvancedDataGrid id="myADG"
            width="100%" height="100%"
            initialize="gc.refresh();">       
            <mx:dataProvider>
                <mx:GroupingCollection id="gc" source="{dpFlat}">
                    <mx:Grouping>
                       <mx:GroupingField name="Region"/>
                       <mx:GroupingField name="Territory">
                          <mx:summaries>
                             <mx:SummaryRow summaryObjectFunction="summObjFunc"
                                summaryPlacement="first">
                                <mx:fields>
                                   <mx:SummaryField dataField="Actual" summaryFunction="summFunc"/>
                                </mx:fields>
                             </mx:SummaryRow>
                          </mx:summaries>
                       </mx:GroupingField>
                    </mx:Grouping>
                </mx:GroupingCollection>
            </mx:dataProvider>       
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="Region"/>
                <mx:AdvancedDataGridColumn dataField="Territory_Rep"
                    headerText="Territory Rep"/>
                <mx:AdvancedDataGridColumn headerText="Actual" dataField="Actual"
                rendererIsEditor="true"
                editorDataField="type"/>
                <mx:AdvancedDataGridColumn dataField="Estimate"/>
            </mx:columns>
    <mx:rendererProviders>
        <mx:AdvancedDataGridRendererProvider
            columnIndex="2"
            columnSpan="1"
            depth="3"
            renderer="TestStatusTypeEditor"/>
    </mx:rendererProviders>
       </mx:AdvancedDataGrid>

  • How do we display an applicationcontrolbar in the first row of an advanceddatagrid?

    I would like to add an applicationcontrolbar that displays a label in the advanceddatagrid.

    I think you must be in the wrong forum. This one is for issues using InDesign by mere mortals, and I have no idea what your post means. I suspect you probably want the SDK forum: http://forums.adobe.com/community/indesign/indesign_sdk

  • AdvancedDataGrid Columnspan in a single row?

    Is there a way to span two or more columns inside an AdvancedDataGrid only in one or more specific rows?
    Basically I need something like this:
    1 | 2 | 3 | 4 |
    span 3 cols | 4 |
    1 | 2 | 3 | 4 |
    1 | span 2 cols | 4
    Thanks.

    Thanks.
    I totally forgot about the LOV settings and was just looking at "Displayed" options.

  • How to add an item object as a child for a specified parent node in AdvancedDataGrid in Flex?

    Hi all,
              This is the code, to add a object as a child into a specified parent node in AdvancedDataGrid in flex.
    <?xml version="1.0" encoding="utf-8"?><mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete()" width="100%" height="100%">
    <mx:Script><![CDATA[
    importmx.controls.Alert; 
    importmx.collections.IHierarchicalCollectionViewCursor; 
    importmx.collections.IHierarchicalCollectionView;  
    importmx.collections.ArrayCollection; [
    Bindable]private var objectAC:ArrayCollection = newArrayCollection(); 
    //This method is used to construct the ArrayCollection 'flatData' 
    private function onCreationComplete():void{
    var objOne:Object = newObject(); objOne.name =
    "Rani"; objOne.city =
    "Chennai";objectAC.addItem(objOne);
    var objTwo:Object = newObject(); objTwo.name =
    "Rani"objTwo.city =
    "Bangalore";objectAC.addItem(objTwo);
    var objThree:Object = newObject(); objThree.name =
    "Raja"; objThree.city =
    "Mumbai";objectAC.addItem(objThree);
    //This method is used to add one object as a child item for the parent node 'Rani' 
    private function addChildItem():void{
    var dp:IHierarchicalCollectionView = groupedADG.dataProvider asIHierarchicalCollectionView;  
    varcurent:IHierarchicalCollectionViewCursor = groupedADG.dataProvider.createCursor();  
    var dummyParentNode:Object = {name:"Rani", city:"New Delhi"};  
    var obj:Object = null; 
    while(curent.current){
    // To get the current node objectobj = curent.current;
    // Add Child item, when depth = 1 and Node name should be "Rani" 
    if (curent.currentDepth == 1 && obj["GroupLabel"] == "Rani"){
    dp.addChild(curent.current, dummyParentNode);
    curent.moveNext();
    groupedADG.dataProvider = dp;
    groupedADG.validateNow();
    groupedADG.dataProvider.refresh();
    ]]>
    </mx:Script> 
    <mx:AdvancedDataGrid id="groupedADG" x="10" y="15" designViewDataType="tree" defaultLeafIcon="{null}" sortExpertMode="true" width="305" > 
    <mx:dataProvider> 
    <mx:GroupingCollection id="gc" source="{objectAC}"> 
    <mx:grouping> 
    <mx:Grouping> 
    <mx:GroupingField name="name"/> 
    </mx:Grouping> 
    </mx:grouping> 
    </mx:GroupingCollection> 
    </mx:dataProvider> 
    <mx:columns> 
    <mx:AdvancedDataGridColumn headerText="Name" dataField="name"/> 
    <mx:AdvancedDataGridColumn headerText="City" dataField="city"/> 
    </mx:columns> 
    </mx:AdvancedDataGrid> 
    <mx:Button x="10" y="179" label="Open the folder 'Rani'. Then Click this Button" width="305" click="addChildItem()" /> 
    </mx:Application> 

    Hi,
    It's not possible to 'append' a StringItem or a TextField (or any other lcdui.Item object) to a Canvas or GameCanvas. You can only draw lines, draw images, draw text, etc etc, on a Canvas screen. So, you can only 'simulate' the look and feel of a TextField (on a Canvas) by painting it and adding source code for command handling (like key presses). However, this will be quite some work!!
    lcdui.Item objects can only be 'appended' to a Form-like Displayable.
    Cheers for now,
    Jasper

  • Editable AdvancedDataGrid / Read-only SummaryRow

    tl;dr - How do I have read-only SummaryFields for an editable column in the AdvancedDataGrid?
    I have an AdvancedDataGrid based on flat data in a GroupingCollection that groups on one field (named "day"). There are 2 known read-only columns, and N additional columns (N is equal for all rows in the grid). My goal is to have the N additional columns editable (numeric) with a read-only SummaryRow at the group level for those columns.
    I can display everything properly, but I cannot figure out how to make the SummaryRow read-only.
    AdvancedDataGrid and AdvancedDataGridColumn seems to the be only classes that allow you to toggle an "editable" flag.
    When I use an AdvancedDataGridRendererProvider, my custom Label-based renderer is called, but I do not know which column it is being called for, so even though I have access to the child data, I do not know which fields in the children to summarize and display in the text field of the label.
    Data is in an ArrayCollection where each item (row) has the following format:
         "day": 1,
         "hour": "Shift 1",
         "Skill0": 4,
         "Skill1": 8,
         "Skill2": 15,
         "Skill3": 16,
         "Skill4": 23,
         "Skill5": 42
    where "day" is the column the grouping occurs on, "day" and "hour" are displayed as read-only fixed columns, and the "SkillN" fields are displayed as editable columns.
    I hope I am missing some simple bit of information here. I have spent many hours on this!
    Am I approaching the solution wrong? Hints and advice are appreciated!
    Thanks,
    Matt

    Thank you so much, Sameer. Unfortunately, I have not been able to get this working. I am using SDK 3.5 in Flex Builder 3.
    Below is a sample app that shows the "editable" property not working properly. Here is a screenshot of the result showing that the summary row is editable:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:AdvancedDataGrid initialize="gc.refresh()" editable="item">
        <mx:dataProvider>
          <mx:GroupingCollection id="gc">
            <mx:source>
              <mx:ArrayCollection>
                <mx:Object day="1" hour="1" Skill0="1"/>
                <mx:Object day="1" hour="2" Skill0="1.5"/>
                <mx:Object day="1" hour="3" Skill0=".25"/>
              </mx:ArrayCollection>
            </mx:source>
            <mx:grouping>
              <mx:Grouping>
                <mx:GroupingField name="day">
                  <mx:summaries>
                    <mx:SummaryRow summaryPlacement="group">
                      <mx:fields>
                        <mx:SummaryField dataField="Skill0"/>
                      </mx:fields>
                    </mx:SummaryRow>
                  </mx:summaries>
                </mx:GroupingField>
              </mx:Grouping>
            </mx:grouping>
          </mx:GroupingCollection>
        </mx:dataProvider>
        <mx:columns>
          <mx:AdvancedDataGridColumn dataField="day"/>
          <mx:AdvancedDataGridColumn dataField="hour"/>
          <mx:AdvancedDataGridColumn dataField="Skill0"/>
        </mx:columns>
      </mx:AdvancedDataGrid>
    </mx:Application>

  • How to change the order of groups in AdvancedDataGrid

    Hello,
    I have a dataset similar to the following:
    Region   Sales
    ======   ======
    North     10
    North     15
    South     5
    East      20
    West      5
    West      4
    West      3
    I'd like to group by Region and sort the groups by the Sales subtotal for each group. I already have the data grouped correctly using GroupingCollection2. How can I sort the groups by the sales subtotal (it sorts by region name by default)? I've seen some posts that talk about creating a custom groupingObjectFunction and applying a group sort. But I'm still confused. Can someone give me some pointers on how to achieve this?
    So ideally, the AdvancedDataGrid would end up looking like this with the regions sorted by sales subtotal;
    Region    Sales
    ======    ======
    North
              10
              15
    subtotal 45
    East
              20
    subtotal 20
    West
              5
              4
              3
    subtotal 12
    South
              5
    subtotal 5

    Thanks, I looked at that earlier but it doesn't contain the solution I was hoping to find.
    I ended up not using GroupingCollection. I think GroupingCollection is cool, but it isn't really customizable to the extent I need.
    I just ended up transforming my data into a hierarchical form that could be used directly by AdvancedDataGrid. At the top level of my hierarchy, I have the detail txn groups, subtotal groups, and grand total groups. To sort the groups, I use custom SortFields. So, for example, if I want to sort by group name, I add a SortField for the groupName attribute. Both the Detail Group and the Subtotal Group share the same group name. Then I add a SortField for a summaryRow attribute. Only the subtotal group has that attribute. This ensures that the Detail Group is always followed by the associated Subtotal Group after sorting. I store my groups in an XMLListCollection and then set the sort attribute, then call refresh().
    Not ideal, but it works. If my requirements were more complex, perhaps my approach wouldn't have worked as well. But as it stands it works well and has good performance.
    I was hoping that ADG could handle this kind of sorting for me, but after looking at the source code, it seems like this is not possible without implementing my own custom GroupingCollection class and possibly other supporting classes.
    One key thing to note is that clicking the column header to sort within groups works fine. However, if you then attempt to sort at the group level, ADG hangs while trying to refresh itself. The trick is to assign the dataProvider.sort attribute to a temporary variable, then set it to null (this sort variable contains the ADG column sorts that the user clicked). Apply your group level sort and then reapply the dataProvider.sort attribute.

  • AdvancedDatagrid Tab Key issue

    Hello, I have an advancedDatagrid which contains many editable column (InpuText) and each column has an itemrender. I see that the normal TAB key navigation behaivor disapear, can any one told me what's the best way to keep the Tab (shift+Tab) navigation behaivor between editable cells ? Thank you

    I am having a simular problem. The software I am training
    requires the user to use tab between fields. I changed the shortcut
    key on text entry boxes. Somewhere on this forum (I cannot find it
    now) I found a workaround that had me change the HTML file
    Between the writeDocument <object> </object>
    tags, add the following '<param name="SeamlessTabbing"
    value="false">'+
    when I publish without quiz reporting this worked fine. (it
    matches the html of the other lines in the writeDocument But when I
    publish with quiz reporting in AICC the HTML codes between the
    writeDocument is different.
    '<param name=quality value=high> \n'+
    I altered the code I show above to match the html written by
    captivate with no results. Any thoughts?

  • Could not resolve mx:AdvancedDataGrid to a component implimentation

       im trying to get this facebook application to work but i keep getting this error
    when i run the application: could not resolve <mx:AdvancedDataGrid> to a component implimentation
    it seems the namespaces are correct, what does this mean?
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/halo" width="100%"
             height="100%" currentState="CONNECTING">
    <mx:AdvancedDataGrid id="adgFriends" dataProvider="{userFriends}"
                             designViewDataType="flat" horizontalCenter="0"
                             verticalCenter="19" includeIn="CONNECTED">
            <mx:columns>
                <mx:AdvancedDataGridColumn headerText="Name"
                                           dataField="first_name"/>
                <mx:AdvancedDataGridColumn headerText="Last Name"
                                           dataField="last_name"/>
            </mx:columns>
        </mx:AdvancedDataGrid>
    </s:Group>

    if i change the  xmlns:mx="library://ns.adobe.com/flex/halo" namespace to
    xmlns:mx="library://ns.adobe.com/flex/mx" i get 2 sets of these errors
    "access of undefined property AIR" and
    "access of undefined property FLEX" referring to these pieces of code.
    i am referencing the Facebook_library_with_AIRConnect_v3.4_flex.swc
               CONFIG::AIR
                    // DesktopSessionHelper import required for AIR and Facebook Connect
                    import com.facebook.utils.DesktopSessionHelper;
                    import com.facebook.session.DesktopSession;
                    // Session variable when running as AIR app
                    protected var session:DesktopSessionHelper;
                CONFIG::FLEX
                    // FacebookSessionUtil import required for Flex (browser) app
                    import com.facebook.utils.FacebookSessionUtil;
                    // Session variable when running as Flex (browser) app
                    protected var session:FacebookSessionUtil;

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

    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>

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

  • Could not resolve mx:AdvancedDataGrid to a component implementation

    Hi, I receive this error msg: "Could not resolve
    <mx:AdvancedDataGrid> to a component implementation" whenever
    i try to compile my application using the Flex 3 application
    command line compile tool.
    I've gone through the folder where i exctracted the Flex 3
    SDK beta 2 I downloaded some 3 days ago and even in the "
    extract_path\frameworks\projects\framework\src\mx\controls"
    folder there was no AdvancedDataGrid component files in it. Yet all
    the other component files metadata indicate "24 September 2007" as
    their last modified date, meaning that i downloaded the most recent
    build, right?
    Please, I would greatly appreciate it if anyone can help me
    resolve this issue, as a deadline is looming large for me.
    Thanks.

    AdvancedDataGrid is part of the datavisualization.swc and
    this SWC is not part of the SDK.
    Download FlexBuilder and install it. Copy the SWC into the
    SDK libs folder from the installation folder of FB.
    It would be located under
    C:\Program Files\Adobe\Flex Builder
    3\sdks\3.0.0\frameworks\libs
    assuming FB is installed in C drive using default options.

  • How do you tell if the advanceddatagrid scroll bars are showing?

    How do you tell if the advanceddatagrid scroll bars are showing? This is because the grid crashes when mouse scroll events are firing when theres not enough data so that scroll bars are not showing

    Basically when you have enough data in a datagrid so that it cannot all be displayed at once, you have the scrollbars showning allowing you to scroll.When you can see all the data or rows at once you cannot see the scrollbars. What I need to test for is whether these SB's are currently showning.
    Hope that is clearer.

  • How to get label of Parent level nodes, when itemOpen() event of any node in AdvancedDataGrid in Flex?

    Hi all,
              This is the code, to get the label of every one parent level nodes, when we open the parent node item in AdvancedDataGrid in Flex.
    <?xml version="1.0"?><!-- dpcontrols/adg/SimpleGroupADGMXML.mxml --><mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert; 
    import mx.events.AdvancedDataGridEvent; 
    import mx.collections.ArrayCollection; [
    Bindable] 
    private var groupData:ArrayCollection = new ArrayCollection([{Computer:
    "HardWare Devices", Device:"Keyboard", Company:
    "Logitech", PriceInRupees:"500"}, {Computer:
    "HardWare Devices", Device:"Keyboard", Company:
    "Microsoft", PriceInRupees:"500"},{Computer:
    "HardWare Devices", Device:"Mouse", Company:
    "Logitech", PriceInRupees:"300"},{Computer:
    "HardWare Devices", Device:"Mouse", Company:
    "Microsoft", PriceInRupees:"300"},{Computer:
    "HardWare Devices", Device:"Monitor", Company:
    "LG", PriceInRupees:"5000"},{Computer:
    "HardWare Devices", Device:"Monitor", Company:
    "Microsoft", PriceInRupees:"5000"}]);
    //This method is used to get label of every parent lavel nodes, when we open any item 
    private function getLabel(e:AdvancedDataGridEvent):void{
    Alert.show(e.item[
    "GroupLabel"]);}
    ]]>
    </mx:Script>
    <mx:Label text="NOTE : Open the every parent level nodes here. We can get the label of every one parent level nodes."color="
    blue" fontWeight="bold"/>
    <mx:AdvancedDataGrid id="groupADG" width="
    100%" height="437" initialize="gc.refresh();" itemOpen="getLabel(event)"
    >  
    <mx:dataProvider>
    <mx:GroupingCollection id="gc" source="{groupData}">
    <mx:grouping>
    <mx:Grouping>
    <mx:GroupingField name="Computer"/>
    <mx:GroupingField name="Device"/>
    </mx:Grouping>
    </mx:grouping>
    </mx:GroupingCollection>
    </mx:dataProvider>  
    <mx:columns>  
    <mx:AdvancedDataGridColumn headerText="
    Computer"/>
    <mx:AdvancedDataGridColumn dataField="Company"headerText="
    Company"/>
    <mx:AdvancedDataGridColumn dataField="PriceInRupees" headerText="PriceInRupees"/>
    </mx:columns>
    </mx:AdvancedDataGrid>

    Dialog\ResponseTime 6585
    "The dialog response time consists of the period of time from the request of the dialog to the dispatcher through the processing, to the ending of the dialog in the dispatcher and the transfer of the data to the presentation layer"
    This is not buffered as far as I know is measured on demand
    Read,
    http://help.sap.com/saphelp_nw70/helpdata/en/31/d7843b43c8e937e10000000a11402f/content.htm
    Regards
    Juan

  • Getting info from advanceddatagrid. Please help me.

    I know http://forums.adobe.com/thread/131416 has the answer inside but i dont understand what it means (hierarchy and cursor thingies)  and how to use it. I only manage to understand until the getting selected index, and I got it. But I dont know how to use it to extract the data from that row and trace it out. please help me add on to my doubleClickHandler function. These are my codes.
    my xml file.
    <location locations="Singapore">
    <locations Region="north">
    <details l_id="7" l_title="Causeway Point" street="1 Woodlands Square, #01-39 Causeway Point"/>
    <details l_id="17" l_title="IMM Building" street="2 Jurong East Street 21, #01-51"/>
    </locations>
    <locations Region="west">
    <details l_id="4" l_title="Arena Country Club " street="511 Upper Jurong Road, #01-06"/>
    <details l_id="19" l_title="Jurong Point" street=" 63 Jurong West Central 3  #B1-54/55 Jurong Point"/>
    </locations>
    </location>
    my actionscript code in the main mxml file
    private function doubleClickHandler():void
                    var item:Object = agd.selectedItem;
                    var index:int = agd.selectedIndex;
                    if (!item || index == -1)
                    return ;
                    Alert.show("Double Clicked item index:" + index);            
    <mx:AdvancedDataGrid id="agd"
    doubleClickEnabled="true" itemDoubleClick="doubleClickHandler()">
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="@locations"
                    headerText="Location"/>
                <mx:AdvancedDataGridColumn dataField="@l_title"
                    headerText="Title"/>
                <mx:AdvancedDataGridColumn dataField="@l_street"
                    headerText="Street"/>
            </mx:columns>
        </mx:AdvancedDataGrid>

    Hi,
    Please see following code,
                private function doubleClickHandler(event:MouseEvent):void
                    var item:Object = event.currentTarget.selectedItem;// if you know id for grid you can provide that also,
                    var index:int = event.currentTarget.selectedIndex;
                    Alert.show("Double Clicked item index:" + index);// you have provided it after return so it wont come always!
                    if (item != null || index == -1)
                          return ;
                    else
                        Alert.show("locations : " + item.@locations);
    Hope this will work for u.
    Thanks.

Maybe you are looking for

  • Tables to find out Vendor Invoices without refrence to a PO

    Hi All, I need to extract all the invoices for a time period which have been raised without refrence to PO and with refrence to a GL account. If possible I need to get a table from where I can get all these invoices which have been raised with refren

  • How do you know when is it time for a new battery??

    my ipod is not being found by windows last night i went to bed and wake up in the morning and it doesn't work right now my ipod is showing three icons in rotation: -battery with lightning bolt but battery meter isn't moving -ipod with sad face -apple

  • Customer Rebate

    I want to know detailed accounting entries for the Customer Rebate. For Example: Sale amount is USD100 Rebate is USD 10 What could be the accounting entry at the time of Invoice? Then when rebate settles i dont understand the postings. Say for exampl

  • IPhone 1 IOS 4.2.1 not retaining revised email password on mobileme mail (now iCloud) account

    iPhone 1 IOS 4.2.1 not retaining revised email password on mobileme mail (now iCloud) account.  Accepts new code and verifies correct in settings but rejects when attempt to download mail as password incorrect.  Reversion to settings shows accepted c

  • How to show Summary label it in the first column of the sheet?

    Hi Gurus, I am wondering if i could show the Label of summary items in the first column instead of showing it along with the Summary data. As with the long worksheets if the summary column is at far right it doesn't look good and not readable too. Th