My custom Tool tip on spark data Grid don't work ?

I want to add panel component as my tooltip for each row in my Spark DataGrid. So when mouse rollover the user can see the information for each the ship. I want a panel as my tooltip for dataGrid cause I want to organize my data neatly and also place a image in the panel.
I came across :http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf60d65-7ff6.html  where they show an example of "Implementing the IToolTip interface" using the panel.I tried manipulating the codes but it didt work for my spark dataGrid.
So my question :
Can some one pls show me how I can use the Panel as my tool tip for each row in spark data grid.
I have been struggling for quite some time.If possible pls Give me an example.
This is my codes below (I tried to follow the example from :http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf60d65-7ff6.html#WS2d b454920e96a9e51e63e3d11c0bf60d65-7ff4 -"Implementing the IToolTip interface")
My MXML Application codes :
    <fx:Script>
    <![CDATA[
        import DesignItemRenderer.PanelToolTip;
        import mx.events.ToolTipEvent;
        import mx.collections.ArrayCollection;         
        import mx.controls.Alert;  
        import spark.events.GridEvent; 
        [Bindable]
        private var myArrivalShips:ArrayCollection = new ArrayCollection([
            {arrivalShipsName:"Ship A", ETD:"12 March"},
            {arrivalShipsName:"Ship B", ETD:"25 March"}            
        private function createCustomTip(event:ToolTipEvent):void {
            var ptt:PanelToolTip = new PanelToolTip();
            ptt.title = "my Ship Info";
            ptt.bodyText = "my data for the ship";
            event.toolTip = ptt;
    ]]>
</fx:Script>
<s:BorderContainer x="267" y="11" width="331" height="586">
    <s:DataGrid id="arrivalTable" x="10" y="326" width="302" height="205" requestedRowCount="4" dataProvider="{myArrivalShips}" toolTipCreate="createCustomTip(event)">
        <s:columns>
            <s:ArrayList>
                <s:GridColumn dataField="arrivalShipsName" headerText="Arrival Ships" ></s:GridColumn>
                <s:GridColumn dataField="ETD" headerText="ETD"></s:GridColumn>             
            </s:ArrayList>
        </s:columns>           
    </s:DataGrid>
    <s:BorderContainer x="10" y="19" width="302" height="285">
    </s:BorderContainer>
</s:BorderContainer>
My Custom Panel codes :
<s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009"
     xmlns:s="library://ns.adobe.com/flex/spark"
     xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"
     implements="mx.core.IToolTip" >
<fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
    <![CDATA[
        [Bindable]
        public var bodyText:String = "";
        //  Implement required methods of the IToolTip interface; these
        //  methods are not used in this example, though.
        public var _text:String;
        public function get text():String {
            return _text;
        public function set text(value:String):void {
    ]]>
</fx:Script>
<s:RichText text="{bodyText}" percentWidth="100"/>
</s:Panel>

Ok I was getting ready to post the renderer code and then found the problem. I had copied this code from another renderer which had contentBackgroundAlpha=0 in the MXAdvancedDataGridItemRenderer tag. When I removed it, the style of the TextArea worked as intended. Your comment helped me to take a closer look at the renderer code, so thank you.

Similar Messages

  • Regarding ALV control: Tool tip for column data

    Hi Group,
    How can I give the tool tip for the data in ALV grid? For column headers I know that, but for the data in the colums how do I give the tool tip info.
    Regards,
    Kummi.

    Hello Kummi
    If you want to have a specific tooltip for an icon displayed in an ALV grid cell then you can use:
    @08<b>\Q</b> <tooltip text><b>@</b>  " shows own tooltip for icon @08@
    I am not sure if the same trick works for "normal" cell values. You may give it a try.
    Regards
      Uwe

  • Adding a dynamic summary row for a spark data grid

    i'm looking for a solution for a spark data grid.
    by clicking on a row it will become larger and will show under the original row a some kind of a summary text with no realtion to columns.
    is there a summary row option for a spark datagrid that can shown by clicking on the row?

    Why would you need to make this part of the DataGrid? Just create some kind of view and bind it's data to the selectedItem of the DataGrid.
    *edit*
    Ohhhh, I see that you want it to display under the item. I believe you can do what you need in the skin, but I haven't had a chance to use the spark DataGrid yet so I can't say for sure. I know it has a feature to skin the selection, so I'm sure you can use that to do what you need.

  • Bind one column to two fields in spark data grid

    hi,
    igave a spark datagrid that uses a GridItemRenderer with a RichText label display.
    the RichText column needs to display two or more fields in diffrenet sizes and colors.
    how can i bind the column to two or more fields?
    any help would be great.

    yes.
    my label function is:
    private function list_labelFunc(item:Object, column:GridColumn):String{
    var result:String = '<span fontSize="12">'+item.InstrumentName+'</span>'; 
    result +=
    '<span color="#FF0000">'+item.SystemName+'</span>'; 
    return result; 
    /* return markupSystem.replace("INSTRUMENTNAME",data.InstrumentName).replace("SYSTEMNAME",data.Syst emName)); */
    my grid column defenition  is:
    <s:GridColumn id="colName" labelFunction="list_labelFunc" headerText="Name" itemRenderer="renderers.OpenPositionsItemRenderer" >
    and my item renderer is:
    <s:GridItemRenderer 
    xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="
    library://ns.adobe.com/flex/spark"xmlns:mx="
    library://ns.adobe.com/flex/mx" clipAndEnableScrolling="true">
    <fx:Script>
    <![CDATA[
     import mx.collections.ArrayCollection; 
    import spark.components.Grid; 
    import flashx.textLayout.elements.TextFlow; 
    import spark.utils.TextFlowUtil; 
    var markupSystem:String = "<p>INSTRUMENTNAME</p><p>SYSTEMNAME</p>"; 
    override public function prepare(hasBeenRecycled:Boolean):void {lblData.text = data[column.dataField]
    override public function set data(value:Object):void{
    var myOwner = super.grid as Grid;  
    super.data = value; 
    var myOwnerDataProvider:ArrayCollection = myOwner.dataProvider as ArrayCollection; 
    var myIndex:int = myOwnerDataProvider.getItemIndex( data ); 
    var i : uint; 
    if(myOwner.selectedIndex !=myIndex){
    if(myIndex % 2 == 0){
    c.color=0x525252;
    else{
    c.color=0x2C2C2C;
    else 
    c.color=0x355180;
    if(column.columnIndex==1){
    var flow:TextFlow = TextFlowUtil.importFromString(markupSystem.replace("INSTRUMENTNAME",data.InstrumentName).replace("SYSTEMNAME",data.SystemName));lblData.textFlow = flow;
    ]]>
    </fx:Script>
     <s:Rect id="rect" top="0" bottom="0" right="0" left="0">
     <s:fill>
     <s:SolidColor id="c" color="#2C2C2C"/>
     </s:fill>
     </s:Rect>
     <s:RichText id="lblData" textAlign="center" color="#DADADA" alpha="0.5" top="20" left="20"/></s:GridItemRenderer>

  • Select various entire lines in data grid doesn't work

    SQL Dev 2.1.1.64 on WinXP.
    I can select entire line in data grid (or query result) by clicking on leftmost column with row number. I expect to select various lines by clicking and dragging, but it won't work. It worked in v1.5.
    Thanks,
    MVr.

    Still 3 other ways that I see:
    * click on the row number of the first row, then shift-click on the row number of the last row
    * click on the first cell of the first row, then drag to the last cell of the last row
    * click on the row number of the second row, then click on the first cell of the first row and drag to the last row (most like what you want)
    Have fun,
    K.

  • "List Data Sets" don't work

    Hi all
    I created the VI with SVE.
    The data I can write and read.
    But the List Data Sets.vi don' show out data.
    Why?
    Respect.
    Iskander
    Attachments:
    Test_DSC.vi ‏11 KB

    Hi
    Thanks all.
    I log in Citadel the Double and Boolean data.
    I can view this data in MAX.
    I want use the "Read Data Set Run by ID.vi" in my project.
    Best regards
    Iskander
    Attachments:
    analog.png ‏25 KB
    Alarm.png ‏28 KB

  • Spry accordion - spry data thumbs don't work correct

    Hi,
    After a lot of good work and patience from Ben, the following issue has to be resolved.
    When opening the Tab, there comes a spry dataset, but when clicking on a thumb, it doesn't show the large image, but closes the AccordionContent.
    Can you help me?
    Thnx (again) a lot!
    Up to the final Holland - ......
    Carla

    Hi Carla,
    My apologies for the delay, I know how frustrating this can be. I was preoccupied with other calendar fulfillments.
    Step 1
    Remvove the code in red and add the code in green
    function myClickHandler(event) {
         var ele = Accordion1.getCurrentPanel();
         var panelNumber = Accordion1.getPanelIndex(ele);
         MM_effectAppearFade(document.getElementById('tab'+panelNumber), 1000, 100, 30, true);
         Accordion1.closePanel(panelNumber);
    function Content0ClickHandler(event) {
         var ele = Accordion1.getCurrentPanel();
         var panelNumber = Accordion1.getPanelIndex(ele);
             MM_effectAppearFade(document.getElementById('tab'+panelNumber), 1000, 100, 30, true);
             Accordion1.closePanel(panelNumber);
    function Content1ClickHandler(event) {
         var ele = Accordion1.getCurrentPanel();
         var panelNumber = Accordion1.getPanelIndex(ele);
             MM_effectAppearFade(document.getElementById('tab'+panelNumber), 1000, 100, 30, true);
             Accordion1.closePanel(panelNumber);
    function Content2ClickHandler(event) {
         var ele = Accordion1.getCurrentPanel();
         var panelNumber = Accordion1.getPanelIndex(ele);
             MM_effectAppearFade(document.getElementById('tab'+panelNumber), 1000, 100, 30, true);
             Accordion1.closePanel(panelNumber);
    Step 2
    Add the following ID's (green coloured) to each of the three contents changing the numbering (orange coloured) from 0 to 2 for each respective content
            <div spry:detailregion="dsqpark1" class="DetailContainer" id="content0">
              <div class="DetailColumn">{Foto_700_x_400}</div>
            </div>
    Step 3
    Remvove the code in red and add the code in green
    Spry.Utils.addEventListener("Accordion1", "click", myClickHandler,  false);
    Spry.Utils.addEventListener("content0", "click", Content0ClickHandler,  false);
    Spry.Utils.addEventListener("content1", "click", Content1ClickHandler,  false);
    Spry.Utils.addEventListener("content2", "click", Content2ClickHandler,  false);
    Holland-Spanje saving you guys years of teasing by the Germans if Oranje had lost to them in the finals.
    Ben

  • J Tool Tips - Strange and Awkward Bug

    Hello Everyone,
    I am having a very strange J Tool Tip bug. Okay first of all, the tool tip that I have created works when it is inside of a single panel for a single label. Basically, what I have is a number of J Labels - each having a unique tool tip. Here is the most basic of my code (notice that I have customized my own Tool Tip to have a yellow background and black foreground):
    currentLabel = new JLabel("LABEL TEST")
                // Extends the JLabel and overrides createToolTip() to return a custom tool tip:
                @Override
                public JToolTip createToolTip()
                    JToolTip toolTip = super.createToolTip();
                    toolTip.setComponent(this);
                    toolTip.setBackground(Color.YELLOW);
                    toolTip.setForeground(Color.BLACK);
                    return toolTip;
            currentLabel.setToolTipText("Testing Tool Tip Message");Okay, so here's the deal. Here's the tricky part. When I have this label nested inside of a Grid Bag Layout Panel, it works perfectly fine. It shows up when the user's mouse hovers over the label.
    Here's my problem. The project that I am working on is actually nested in many complicated panels. This project has about 100 java files, so I am just going to cut it short and let you know which kind of panels it is nested in.
    Starting from the lowest panel:
    1. J Panel (Grid Bag Layout)
    2. J Panel (Box Layout)
    3. J Panel (Border Layout)
    4. J Split Pane (Right Side)
    5. J Panel (Border Layout) (Largest Panel)
    One of the things I noticed is that now when I hover over the labels, a very small microscopic blue dot appears right to the left of the mouse cursor. I seriously think this is the Tool Tip, but for some reason it isn't showing any text. The strange thing is that the tool tip works when panels 2, 3, 4, and 5 are non-existent. If you guys have any ideas or suggestions, please let me know! I'd really appreciate it!
    Thanks,
    Brian

    What I might do is : see if listening for mouseEntered and mouseExited events work on the labels when in their complex arrangement. And make a little tooltip class based on JWindow (perhaps with a JLabel on its contentpane so you can display HTML). I found this approach more reliable. Though one would expect this is what is already implemented, the inbilt behaviour may overcomplicate things resulting in some no-shows. I seem to remember having this problem with tootips on table cell renderers.
    Edited by: kina_tji on Jul 23, 2008 6:33 PM

  • Tool tips/ java

    Hi-
    I am working on a form in ES with a submit button. I am currently having issues with people hitting submit more than once, because when the PDF is submitted it takes time, and they are not sure they have done it right instead of waiting for the confo page.
    To fix this, I have entered a tool tip on my submit button, which does work, however... wondering if anyone has a simple script for either postSumit or on click that pops up a subform or other so that I can enter some large red "please be patient" text by my button.
    Thanks in advance.

    I'm sorry. My explanation didn't have much substance, did it.
    Here's the idea:
    1) change the submit button to hidden (let's call this button submitBtn)
    2) add a second button (a plain old button) and label it "Submit" (le'ts call this button callSubmitBtn)
    3) on the click event of callSubmitBtn, call the click event of submitBtn and set the presence of callSubmitBtn to "readOnly"
         form1.page1.subform1.submitBtn.execEvent("click");
         form1.page1.subform1.callSubmitBtn.presence = "readOnly";
    Steve

  • Tool tip problem

    Hi there
    In CS3 when you converted an object to a button you could add a description (tooltip) whcih would then show up in the exported PDF.
    In CS4 this feature has been removed (as far as I can see) and you have to use the form editing function in Acrobat. So subsequently if you have to re-edit your Indesign document you have to re-do all your tool tips again.
    Does anyone know if the tool tip feature is in CS4 or a work around to this problem.
    Many thanks

    Do you mean the description as in
    this older discussion? (And on the Mac side of the world.)
    (D/L the mentioned script from
    my site.)
    Apparently, "Some Useful Features Have Been Removed".

  • Removing Tool Tips in PS 9.1

    We are in the process of building UPK modules for our upcoming PS 9.1 implementation. We need to turn off tool tips throughout the application so they do not capture when recording to UPK. Where does the switch reside to turn off tool tips?

    Hello,
    Sorry I don't know about configuring PeopleSoft tool tips. Perhaps someone else who has more experience with PeopleSoft will come along. In the meantime, you may want to post your question to the [PeopleSoft forum|http://forums.oracle.com/forums/forum.jspa?forumID=432].
    Also, there are far more discussions inside [My Oracle Support|http://support.oracle.com/] which I highly recommend to current customers.
    Best regards,
    Marc

  • Spry Tool Tip problem - Help please!

    When I add a tool tip to my template, it does not work when I roll over the object, and it shows the the text it is supposed to display at the bottom of the page.
    It works fine on other pages where I've tested it, but not on this site.
    Here is a page where you can see what it's doing.
    Thanks!

    Hi Bill,
    could it be that your DW doesn't "find" your SpryAssets directory? I've intendedly nested it very deep and it works like a charm. In this case I had to write:
    <script src="../../SpryAssets/SpryTooltip.js" type="text/javascript"></script>
    <link href="../../SpryAssets/SpryTooltip.css" rel="stylesheet" type="text/css" />
    Hans-Günter

  • Tool Tips in PeopleSoft 9.1

    We are in the process of building UPK modules for our upcoming PS Financial 9.1 implementation. We need to turn off tool tips throughout the application (training database) so they do not capture when recording to UPK. Where does the switch reside to turn off tool tips?

    Hello,
    Sorry I don't know about configuring PeopleSoft tool tips. Perhaps someone else who has more experience with PeopleSoft will come along. In the meantime, you may want to post your question to the [PeopleSoft forum|http://forums.oracle.com/forums/forum.jspa?forumID=432].
    Also, there are far more discussions inside [My Oracle Support|http://support.oracle.com/] which I highly recommend to current customers.
    Best regards,
    Marc

  • Choose Date Component do not work in Internet Explorer 7

    Hello everybody.
    I have developped a Form with ADF using a Choose Date Component.
    In Firefox everything is working fine. But in Internet Explorer 7 the Calendar of the Choose Date Component don't work
    IE has following error message:
    Line: 5378
    Char: 2
    Error: Element not found
    Code: 0

    You didn't mention which JDeveloper version you are using. Assuming it is 11 can you try the component demo from here and see if it works:
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/index.jspx

  • Custom System Data Grid

    Hi!
    I need a custom data grid, explaining:
    I need to made custom list of specific files, in the System data grid I can use the drag and drop files to desktop, but how I made the drag and drop work in the custom data grid of list of files?
    I tried to show in the data grid the path of the file, and drag this, but the error is:
    "Data for file list format must be an array of Files"
    But, how I made a "array of files"?
    Sorry to my bad english =)
    Thanks a lot! =)

    Hello chhavs,
    If you listen to the DataGrid's headerRelease event, the event has a property columnIndex to let you know which column the user wanted to sort. So you don't need 10 functions, just one with a switch statement, which is reasonable.
    private function handleHeaderRelease(event:DataGridEvent):void
    var sort:Sort = new Sort();
    var field:SortField;
    switch (event.columnIndex)
    case 0:
    field = new SortField("fieldA");
    break;
    case 1:
    field = new SortField("fieldB");
    break;
    case ...
    sort.fields = [field];
    masterRecords.sort = sort;
    masterRecords.refresh();
    Thanks,
    Philip

Maybe you are looking for

  • Reports 6i and html generation

    I am rendering report output in html via the web from reports server 6i on the NT platform. When viewing the report in a browser there is a bold letter "t" in the upper left hand corner of the screen. I also get duplicate ")" and "-" characters in va

  • BI related Knowledge management question

    Hi Gurus, i am a BI consultat, new to knowledge management, I need some documents trlated to below mentioned topics *Content Management* Using KM as repository for Queries,(web and Excel), Workbooks, Web Templates. Publishing background report output

  • RV082 RV042 RV042G v4 firmware bug?

    Models affected:  RV082 v3 (primarily)  -  also RV042 v3 and RV042G Symptoms: 1) web admin GUI stops responding 2) internet speed slows or stops completely Temporary Fix: 1) power-cycle the router, everything works fine for a random period of time No

  • Question about Macromedia Flash 8

    I came across a site that said I needed this installed to view. Can I install it? Where do I get it? My Safari plug in's do include shockwave. I do not think this is the same thing. Is it safe to install and not cause any problems? And what is the DR

  • Permissions in Folrders ?

    Could I give a permission for a user just to see his document at a folder ??? But in this folder there are a lot of files from other users. How can i do this ???