Can the border be removed on a RadTextBox?

3 posts, 1 answers
  1. Alex
    Alex avatar
    16 posts
    Member since:
    Nov 2012

    Posted 26 Jul 2013 Link to this post

    Can the border be removed from a RadTextBox?
  2. Answer
    A2H
    A2H avatar
    177 posts
    Member since:
    Mar 2010

    Posted 26 Jul 2013 Link to this post

    Hello,

    Please try any one of the below implementations based on your requirement. 

    1) Set the css style.
    This will apply to all input controls in your page and if you have multiple textboxes, then applying this css style will make all text boxes border to disappear.
    <style type="text/css">
        html body .RadInput input.riTextBox {
            border: none;
        }
    </style>

    2) If you want the border to removed for specific controls then use the below javascript implementation

    function Load(sender) {
     sender.get_styles().EnabledStyle[0] += "border: none;";
                  sender.updateCssClass();
      }

    Aspx Page:

    <telerik:RadTextBox ID="RadTextBox2" runat="server">
           <ClientEvents OnLoad="Load" />
           </telerik:RadTextBox>


    Thanks,
    A2H
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alex
    Alex avatar
    16 posts
    Member since:
    Nov 2012

    Posted 02 Aug 2013 Link to this post

    A2H, your method #2 worked for me. Thanks.
Back to Top