Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 740815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:33:35+00:00 2026-05-14T08:33:35+00:00

I have flex advancedDataGrid (could use dataGrid if that works better, though i like

  • 0

I have flex advancedDataGrid (could use dataGrid if that works better, though i like my meta-column headers), and i want to have a component popup on top of a selected row.

The problem is, i can figure out how to reference an actual rendered row of a datagrid (rather than an item of the dataprovider) in order to get its position on the screen.

Does anyone have any theories on how to access a “row” of a datagrid, or at least get its position?

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:33:35+00:00Added an answer on May 14, 2026 at 8:33 am

    We ended up doing this in an itemrender that references the parent document. Basically, when clicked, the item renderer would evoke a function in the parent with a reference to itself.

    At that point our parent document knew which cell was selected, and we did some manipulation to determine its x,y coordinates:

    public function showPopup(selectedItemRenderer:UIComponent):void {
            selectedCell = selectedItemRenderer;
    
            PopUpManager.removePopUp(editPopup);
    
            editPopup.height = dg.rowHeight;
    
            BindingUtils.bindProperty(editPopup, "width", dg, "width");
    
            editPopup.setStyle("backgroundColor", 0xFF0000);
            if(selectedCell != null) {
                editPopup.x = selectedCell.localToGlobal(new Point(0,0)).x - 1;
                editPopup.y = selectedCell.localToGlobal(new Point(0,0)).y - 1;
            }
    
            PopUpManager.addPopUp(editPopup, DisplayObject(Application.application));
    
        }
    

    <mx:DataGrid id="dg" width="500" height="100%"
        dataProvider="{dummyData2}">
    <mx:columns>        
        <mx:DataGridColumn
            width="60">
            <mx:itemRenderer>
                <mx:Component>
                    <mx:HBox>
                        <mx:Button label="edit" click="{parentDocument.showPopup(this)}" />
                    </mx:HBox>                          
                </mx:Component>
            </mx:itemRenderer>
        </mx:DataGridColumn>
        <mx:DataGridColumn 
            dataField="Category">
        </mx:DataGridColumn>     
    </mx:columns>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a flex app that I want to hide in a div until
I have flex sdk 4.6 installed and I want to compile AS3 class that
I have Flex 4 DataGrid, what I would like to do is when an
I have a portlet. Inside of this portlet I have Flex application that displays
I have a flex application with an iframe layered on top. I want to
I have an AdvancedDataGrid with XML dataProvider. Drag and drop in enabled, and works
I have the following scenario : A Flex 3 DataGrid is sitting here At
I have a flex application that uses the actionscript navigateToURL function to go to
I have a flex (flash builder 4.6) DataGrid. One of the columns is a
I have a windowed Flex application (AIR) that uses an HTML file for the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.