AutoCompleteType has no effect

4 posts, 0 answers
  1. KDL
    KDL avatar
    36 posts
    Member since:
    Aug 2005

    Posted 11 Feb 2010 Link to this post

    The following AutoCompleteType settings have no effect:

    <telerik:RadTextBox ID="RadTextBox1" runat="server"    
         EmptyMessage="Username"   
         AutoCompleteType="None" 
    />   

    or

    <telerik:RadTextBox ID="RadTextBox1" runat="server"    
         EmptyMessage="Username"   
         AutoCompleteType="Email" 
    />   
     

    I've tested in both IE8 and FireFox 3.5. Both browsers have autocomplete enabled and regular TextBoxes work fine. Is there an additional setting that I'm missing? Thanks!
  2. Dimo
    Admin
    Dimo avatar
    8486 posts

    Posted 16 Feb 2010 Link to this post

    Hi Kent,

    I did a couple of tests and my conclusion is that the problem is browser-related and caused by the fact that in this scenario you are using EmptyMessage. The same issue can be observed with a regular asp:TextBox if you change the textbox value upon focus.

    Please use the RadTextBoxes without an EmptyMessage or alternatively, you need to start typing in order to see the autocomplete dropdown. You will not see it if you click twice inside the textbox (which is expected in standard scenarios).

    Regards,
    Dimo
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. KDL
    KDL avatar
    36 posts
    Member since:
    Aug 2005

    Posted 16 Feb 2010 Link to this post

    Typing doesn't cause the drop-down either. I've verified this behavior on both IE8 and FireFox 3.5. The EmptyMessage feature is the reason why I'm using the RadTextBox, so not using this feature isn't really an option.

    BTW, I just updated to Q3 SP2 and it still doesn't work. I also removed the EmptyMessage property from the markup and it still doesn't work.

    Am i missing something really simple?

    Update: If I use the RadInputManager with a regular textbox instead of a RadTextBox, it works fine. Clearly this is an issue with the RadTextBox control.

    Update 2: RadInputManager introduces new problems since the TextBox no longer works correctly with the ASP validation controls(!) since the RequiredFieldValidator thinks the TextBox has a value whenever the EmptyMessage is displayed. This is killing me...
  4. Dimo
    Admin
    Dimo avatar
    8486 posts

    Posted 19 Feb 2010 Link to this post

    Hello Kent,

    AutoComplete works correctly on my side when I start typing. Can you send a simple demo?

    As for your second question - using RequiredFieldValidator with RadInputManager and EmptyMessage is not supported, because the validator cannot know whether the empty message is an empty message or a valid value. You should use the RadInputManager's built-in validation instead:


    <%@ Page Language="C#" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
      
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     
    <head runat="server">
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <title>RadControls</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
      
    <telerik:RadInputManager ID="RadInputManager1" runat="server">
        <telerik:TextBoxSetting EmptyMessage="empty" ErrorMessage="ErrorMessage">
            <Validation IsRequired="true" />
            <TargetControls>
                <telerik:TargetInput ControlID="TextBox1" />
            </TargetControls>
        </telerik:TextBoxSetting>
    </telerik:RadInputManager>
     
    <asp:TextBox ID="TextBox1" runat="server" />
     
    <asp:Button ID="Button1" runat="server" Text="PostBack" />
     
    </form>
    </body>
    </html>


    Sincerely yours,
    Dimo
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top