PDA

View Full Version : [CLOSED] Display TextField with ToolTips and AllowBlank overlapping



Aurelio
Jan 12, 2013, 6:05 AM
Hi,
it possible not have a tooltip then a error message appear?

Actually the two control overlapping (see image)




<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />


<ext:TextField ID="TextField1" runat="server" Width="400" FieldLabel="User"
AllowBlank="false" BlankText="*Obbligatorio" MarginSpec="20 0 0 20">
<ToolTips>
<ext:ToolTip runat="server" Title="Message" Html="Hello world --- ciaoooooooooo" Width="200"></ext:ToolTip>
</ToolTips>
</ext:TextField>

</form>
</body>
</html>


5417

Thanks
Aurelio

Baidaly
Jan 14, 2013, 12:41 AM
Hello!

To prevent overlapping you can set tooltip's anchor value :



<ext:TextField ID="TextField1" runat="server" Width="400" FieldLabel="User"
AllowBlank="false" BlankText="*Obbligatorio" MarginSpec="20 0 0 20">
<ToolTips>
<ext:ToolTip runat="server" Title="Message" Html="Hello world --- ciaoooooooooo" Width="200" Anchor="right"></ext:ToolTip>
</ToolTips>
</ext:TextField>

Aurelio
Jan 14, 2013, 7:13 AM
Hi..Baidaly
Your solution is great, but when there is no space left of the field the tooltip appears at left..
It's possibile hide the tooltip the retrive an error validation ?
5421

Thanks
Aurelio

Vladimir
Jan 14, 2013, 9:25 AM
You can disable/enable tooltip in ValidityChange event of the field


<ValidityChange Handler="#{MyTooltip1}[isValid ? 'enable' : 'disable']();" />

Aurelio
Jan 14, 2013, 9:47 AM
HI..Vladimir

Yeahhhhh...many Thanks it's work great.

Aurelio