[CLOSED] Display TextField with ToolTips and AllowBlank overlapping

  1. #1

    [CLOSED] Display TextField with ToolTips and AllowBlank overlapping

    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>
    Click image for larger version. 

Name:	Immagine.png 
Views:	128 
Size:	3.7 KB 
ID:	5417

    Thanks
    Aurelio
    Last edited by Daniil; Jan 14, 2013 at 10:59 AM. Reason: [CLOSED]
  2. #2
    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>
  3. #3
    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 ?
    Click image for larger version. 

Name:	Immagine.png 
Views:	144 
Size:	12.7 KB 
ID:	5421

    Thanks
    Aurelio
  4. #4
    You can disable/enable tooltip in ValidityChange event of the field
    <ValidityChange Handler="#{MyTooltip1}[isValid ? 'enable' : 'disable']();" />
  5. #5
    HI..Vladimir

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

    Aurelio

Similar Threads

  1. Replies: 3
    Last Post: Jun 27, 2012, 2:19 PM
  2. [CLOSED] How to Display Client IP address in TextField
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: May 27, 2011, 10:23 AM
  3. Replies: 8
    Last Post: Jun 25, 2010, 2:53 PM
  4. [CLOSED] [1.0] MultiField controls overlapping
    By danielg in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 24, 2010, 2:25 PM
  5. Replies: 1
    Last Post: Mar 12, 2010, 3:48 AM

Posting Permissions