Sep 14, 2012, 4:14 PM
[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.
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]