RadTextBox and browser autocomplete

11 posts, 0 answers
  1. Jure
    Jure avatar
    18 posts
    Member since:
    Jul 2010

    Posted 30 Jul 2011 Link to this post

    Hello!

    I am using RadTextBoxes so users input their email and password information for login.

    Here is the code snippet (everything is enclosed in a RadAjaxPanel):

    E-mail:
     <telerik:RadTextBox ID="rtbEmail" runat="server" EmptyMessage="E-mail" MaxLength="100" />
     <asp:RegularExpressionValidator ID="revEmail" Display="Dynamic" ErrorMessage="Invalid e-mail address." CssClass="error"
                                     ValidationGroup="vgLogin" ControlToValidate="rtbEmail" runat="server"
                                     ValidationExpression="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$" />
     <asp:RequiredFieldValidator ID="rfvEmail" Display="Dynamic"  runat="server" ErrorMessage="No e-mail address." CssClass="error" ValidationGroup="vgLogin" ControlToValidate="rtbEmail" />
     <br />
     <br />
    Password:
     <telerik:RadTextBox ID="rtbPassword" runat="server" EmptyMessage="Password" MaxLength="100" TextMode="Password" />
     <asp:RequiredFieldValidator ID="rfvPassword" Display="Dynamic" runat="server" ErrorMessage="No password." CssClass="error" ValidationGroup="vgLogin" ControlToValidate="rtbPassword" />


    No matter how many times I input the email and password my browser doesn't remember it. I have it turned on though, because other sites remember my inputs normally.

    Thanks for your assistance.

    Sincerely, Jure
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 04 Aug 2011 Link to this post

    Hi Jure,

    To use the AutoComplete feature of RadTextBox please review the following online help topic.
    I hope this helps.

    All the best,
    Maria Ilieva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jure
    Jure avatar
    18 posts
    Member since:
    Jul 2010

    Posted 04 Aug 2011 Link to this post

    As you see I have RadTextBox declared like this:

    <telerik:RadTextBox ID="rtbEmail" runat="server" EmptyMessage="E-mail" MaxLength="100" />


    Your article says:
    By default, the value of the AutoCompleteType property is "None". With this setting, the RadTextBox control shares the list with otherRadTextBox controls with the same ID property across different pages. For any other value of AutoCompleteType, the RadTextBoxshares its list with all RadTextBox controls that have the same AutoCompleteType value.

    As you see I have AutoCompleteType set to "None" - default, however autocomplete doesn't work in this page, and not on any other page where I have a textbox named rtbEmail. Autocomplete in my browsers works fine - it works on all the sites that are online...
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 09 Aug 2011 Link to this post

    Hello Jure,

    Find attached a small runnable application which demonstrates the correct behaviour of RadInput "None" autocomplete mode. Test it on your side and verify of it works for you. Please note that you should enable the browser autocomplete feature before testing.

    Greetings,
    Maria Ilieva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  6. Jure
    Jure avatar
    18 posts
    Member since:
    Jul 2010

    Posted 04 Oct 2011 Link to this post

    I didn't have time to attend this matter as it is not so important but I found out what is wrong. In the example you sent me everything works fine, however if you wrap the controls (radTextBox) in radAjaxPanel or some else ajaxifying control the autocomplete stops working. Is it posible to have RadTextBox wrapped in ajaxpanel so the autocomplete works, below is a code snippet:

    <telerik:RadAjaxPanel ID="rap" runat="server">
      <telerik:RadTextBox AutoCompleteType="None" ID="RadTextBox1" runat="server" />
      <asp:Button ID="Button1" Text="Button1" runat="server" />
    </telerik:RadAjaxPanel>
  7. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 07 Oct 2011 Link to this post

    Hello Jure,

    Thank you for getting back to us.

    It seems that the described issue is a bug in the RadAjax controls. I have passed this problem to our dev team so they could further research on the issue and discuss if possible fix is available. As soon as we have any updates on this case we will get back to you.

    Regards,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  8. druffyw
    druffyw avatar
    2 posts
    Member since:
    Jul 2011

    Posted 17 Jan 2013 Link to this post

    Any updates on this?
  9. Bill O'Neil
    Bill O'Neil avatar
    111 posts
    Member since:
    Nov 2004

    Posted 26 Jun 2013 Link to this post

    Is there any solution to this issue?
  10. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Jul 2013 Link to this post

    Hi Bill,

    The presented behavior appears to be a general framework issue and it is not directly related with the RadTextBox control. As submitting the input value with ajax does not perform submitting of the whole form the browser auto complete functionality does not work as expected and this could be replicated with regular asp TextBox and asp UpdatePanel controls. You could review the flowing forum thread for more information on this matter:
    http://stackoverflow.com/questions/9201858/how-to-store-to-browser-auto-complete-auto-fill-when-using-ajax-calls-instead-of


    Regards,
    Maria Ilieva
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  11. Bill O'Neil
    Bill O'Neil avatar
    111 posts
    Member since:
    Nov 2004

    Posted 01 Jul 2013 Link to this post

    Understood - I realized that and thought from the way this was phrased that there might be something RadAJAX could do about it.

    If RadAJAXManager could solve this issue - that would certainly be classified as real "difference making" functionality.  Just a thought.
  12. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 02 Jul 2013 Link to this post

    Hi,

    Our developers made some research locally and unfortunately came to the conclusion that the general limitation could not be bypassed in the RadAjax components.

    Regards,
    Maria Ilieva
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017