3 Replies Latest reply on Dec 6, 2010 12:08 PM by learner_doug

    Question about popup window positioning from AdvDataGrid column

    MacLeod7222

      I have an advancedDataGrid. When a user hovers over one of the columns I need to display a popup window. How can I position the popup window next to the datagrid column? It would be very simialar to a tooltip.

       

      thanks

        • 1. Re: Question about popup window positioning from AdvDataGrid column
          TejasJani123 Level 1

          I am exploring a similar requirement that we have.

           

          We are trying to mimic the behaviour found in EXTJS grid component, where we want a popup menu on hovering the mouse over the column header. The menu should consist of options for sorting and locking the column. We also need to position the menu to be placed under the column header. Not sure if there is anything like this out there.

          • 2. Re: Question about popup window positioning from AdvDataGrid column
            learner_doug Level 1

            Never tried what you are trying, however, if an event can be triggered from the mouse action, the ToolTip manager allows you to place the tooltip in a specific x/y coordinate.  450/437 are the x,y coordinates.

             

            public

             

             

            var fo12Tip:ToolTip;

             

            private function createFO12Tip(event:Event):void

            {

             

             

            var s:String = "Text string goes here\nNew line here"

            fo12Tip = ToolTipManager.createToolTip(s, 450, 437,

            null, IUIComponent(event.currentTarget)) as ToolTip;

            fo12Tip.setStyle(

            "backgroundColor",0x664615);

            fo12Tip.setStyle(

            "cornerRadius", 8);

            fo12Tip.setStyle(

            "fontFamily", "Verdana");

            fo12Tip.setStyle(

            "color",0xFFFFFF);

            fo12Tip.setStyle(

            "fontSize",12);

            fo12Tip.width=300;

            fo12Tip.height=200;

             

            }

             

             

             

             

            private function destroyFO12Tip():void

            {

            ToolTipManager.destroyToolTip(fo12Tip);

             

            }

            • 3. Re: Question about popup window positioning from AdvDataGrid column
              learner_doug Level 1

              Perhaps using the PopUpManager with a

              TitleWindow as the class might do it.  You can place all kinds of stuff in the TitleWindow (text, images, links, swfs etc).  The only problem is that you have to close the window manually.  Sounds like that may be a show-stopper.