3 Replies Latest reply on Nov 3, 2009 8:00 AM by soupycafe

    Ah! the delights of advanced data grid!

    soupycafe

      I have a xml hierarchical advanced data grid.

      Is there a way to disable the folderIcons for the advanceddatagrid?

      Or is there a way to integrate the folderIcon actions to selected row actions?

       

      Right now, I have a listener for itemOpen. When one folder opens, then another one will close. However, when the user clicks on the folderIcon....it does not do this. I do not know how to access the expandeditem of the advanceddatagrid.

       

       

      Thank you for your help!

      Emma

      * Also, the fonts are being embedded by css...when you click on the folder...the fonts jump while they are being propagated. suggestions?

        • 1. Re: Ah! the delights of advanced data grid!
          soupycafe Level 1

          OK! So I was making things hard on myself.

          I had enabled a listener for openItem...instead of putting it directly on the advancedDataGrid.

          It is fantastic...

          However, it would be great to disable the treeNode Icon functionality(drop down arrows).

          I still want them to rotate upon showing their leaf extensions though.

           

          thank you for your help,

          Emma

          • 2. Re: Ah! the delights of advanced data grid!
            Sameer Bhatt Adobe Employee

            You can try preventing the itemOpening event.

            Create an itemOpening handler and call event.preventDefault();

             

            -Sameer

            • 3. Re: Ah! the delights of advanced data grid!
              soupycafe Level 1

              That is a great idea...except I am using the selectRow to use these same events.

               

              It seems what I need is access to the same selectedItem.

              When I click on the row, I pass through _selectedItem from the event function.

               

              However, it is a little bit more complicated for the drop down buttons.

              I try to get the same format with this:

              selectedItem=IHierarchicalCollectionView(adg.dataProvider).openNodes;

              but I get an [object][object]

               

              I found this bit of code on a site:

               

              import mx.collections.HierarchicalCollectionView;

               


              myOpenNodes:Array = new Array(); 
              var HierColView:HierarchicalCollectionView = HierarchicalCollectionView(myADG.dataProvider);

               

              for each ( var item:Object in HierColView.openNodes ) {
              myOpenNodes.push(item);
              };

               


              myADG.dataProvider.openNodes = myOpenNodes;