Disable autocomplete

6 posts, 2 answers
  1. Tia
    Tia avatar
    18 posts
    Member since:
    Mar 2013

    Posted 25 Mar 2013 Link to this post

    Hi 

    I have a requirement like I want to disable the autocomplete feature for a particular textbox. Also is it possible to restrict the cut copy and paste operation?

    Thanks,
    Tia.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 Mar 2013 Link to this post

    Hi Tia,

    Please check the following mark-up to achieve your scenario.

    ASPX:
    <telerik:RadTextBox ID="RadTextBox1" runat="server" Label="UserName : " oncontextmenu="return false"
        onpaste="return false" oncut="return false" oncopy="return false" autocomplete="off">
    </telerik:RadTextBox>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tia
    Tia avatar
    18 posts
    Member since:
    Mar 2013

    Posted 26 Mar 2013 Link to this post

    Thanks it helps. Is there any way to disable complete for all the textboxes in my login form?
  5. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Mar 2013 Link to this post

    Hi,

    If you want to disable the auto-complete feature for all the RadTextBoxes, then you may set the form AutoComplete property to off. Please check the following mark-up.

    ASPX:
    <form id="form1" runat="server" autocomplete="off">
    </form>

    Thanks,
    Princy.
  6. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 13 Mar 2015 in reply to Princy Link to this post

    Hi Princy,

    I want to set autocomplete=off in whole website. if i added for textbox in skin file its accepted.<asp:TextBox Font-Name="segoe ui" Font-Size="12px" Font-Weight="500" Font-Bold="False" runat="server" autocomplete="off" />

    but Telerik
    <telerik:RadTextBox Font-Name="segoe ui" Font-Size="12px" Font-Weight="500" Font-Bold="False" runat="server" AutoCompleteType="Disabled"/></telerik:RadTextBox>

    i got the following error message
    The 'AutoCompleteType' property of a control type Telerik.Web.UI.RadTextBox cannot be applied through a control skin.

    Please give your suggestion for add Autocomplete=off in entire application. Please note there are no master page in this website

    Thanks in Advance,
    Dhamu
  7. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 25 Mar 2015 Link to this post

    Hi All,

    Is this possible above my post. or else please help me how we can execute this concept in my website.

    Thanks,
    Dhamu
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017