[CLOSED] How to hide empty ToolTip?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] How to hide empty ToolTip?

    Hi,

    Is it possible not to display an empty ToolTip? Here's the setup on my page. If the DisplayField1 element is empty, I'd like to prevent the ToolTip from showing up. It should be available if a non-empty value does exist though.

    <ext:DisplayField ID="DisplayField1" runat="server">
        <ToolTips>
            <ext:ToolTip ID="ToolTip1" runat="server">
                <Listeners>
                    <Show Fn="showToolTip" />
                </Listeners>
            </ext:ToolTip>
        </ToolTips>
    </ext:DisplayField>
    
    var showToolTip = function () {
        this.body.dom.innerHTML = "<b>" + DisplayField1.getValue() + "</b>";
    };
    Last edited by Daniil; Sep 17, 2012 at 5:44 AM. Reason: [CLOSED]

Similar Threads

  1. [CLOSED] Hide tooltip
    By gets_gui in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 19, 2012, 1:45 PM
  2. [CLOSED] Hide grid tooltip when there is no text
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 25, 2011, 12:16 PM
  3. [CLOSED] GridPanel Cell Tooltip - javascript error on this.hide()
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 16, 2011, 12:22 PM
  4. [CLOSED] label.Hide() does not hide FieldLabel
    By alexp in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 12, 2010, 9:05 PM
  5. Replies: 0
    Last Post: Jun 26, 2009, 11:32 AM

Tags for this Thread

Posting Permissions