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

  • Home
  • SEARCH
  • 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

So, I have Flex project that loads a Module using the ModuleManager - not
I have a flex application that needs the ability to generate and execute JavaScript.
I have a Flex ComboBox that gets populated by a dataprovider all is well...
I have a Flex application that calls a function which searches a large document
I have a Flex App that allows you to dynamically build an animation. It
I have a Flex application that seems larger than it should be. There is
I have a flex project that is made of up several custom components that
I have an AdvancedDataGrid with XML dataProvider. Drag and drop in enabled, and works
Is it possible to have a Button object in a column in an AdvancedDataGrid
I have the following scenario : A Flex 3 DataGrid is sitting here At

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.