May 26, 2014, 7:04 AM
Tooltip not showing on first mouseover
Hi Ext.net team,
I want to display ToolTip when mouseover event occur.
The tooltip won't show up when I move mouse over at the first time,
but it does show up when I move mouse over from the second time.
Please take a look of the source code and attachment for further information.
Any advice?
Thanks
I want to display ToolTip when mouseover event occur.
The tooltip won't show up when I move mouse over at the first time,
but it does show up when I move mouse over from the second time.
Please take a look of the source code and attachment for further information.
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
var ShowTip = function (obj, targetid) {
var msg = "" + Ext.getCmp(targetid).getRawValue();
if (msg != "") {
obj.body.dom.innerHTML = Ext.String.format("{0}", msg);
}
else
obj.hide();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" Namespace="" />
<ext:ComboBox ID="cmbTest" runat="server" FieldLabel="Item"
TypeAhead="false" Width="190" HideBaseTrigger="false" MinChars="1" LabelWidth="60" MatchFieldWidth="false">
<Items>
<ext:ListItem Text="A" />
<ext:ListItem Text="B" />
<ext:ListItem Text="C" />
</Items>
<ToolTips>
<ext:ToolTip ID="ToolTip3" runat="server" Width="280">
<Listeners>
<Show Handler="ShowTip(this, 'cmbTest')" />
</Listeners>
</ext:ToolTip>
</ToolTips>
</ext:ComboBox>
</form>
</body>
</html>
Any advice?
Thanks
Last edited by capbarbell; May 27, 2014 at 6:06 AM.