This is a migrated thread and some comments may be shown as answers.

AutoCompleteType has no effect

3 Answers 107 Views
Input
This is a migrated thread and some comments may be shown as answers.
KDL
Top achievements
Rank 1
KDL asked on 12 Feb 2010, 02:11 AM

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!

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Feb 2010, 10:10 AM
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.
0
KDL
Top achievements
Rank 1
answered on 16 Feb 2010, 06:11 PM
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...
0
Dimo
Telerik team
answered on 19 Feb 2010, 02:20 PM
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.
Tags
Input
Asked by
KDL
Top achievements
Rank 1
Answers by
Dimo
Telerik team
KDL
Top achievements
Rank 1
Share this question
or