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

Can the border be removed on a RadTextBox?

2 Answers 248 Views
Input
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 2
Alex asked on 26 Jul 2013, 07:07 PM
Can the border be removed from a RadTextBox?

2 Answers, 1 is accepted

Sort by
0
Accepted
A2H
Top achievements
Rank 1
answered on 26 Jul 2013, 09:57 PM
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
0
Alex
Top achievements
Rank 2
answered on 02 Aug 2013, 08:50 PM
A2H, your method #2 worked for me. Thanks.
Tags
Input
Asked by
Alex
Top achievements
Rank 2
Answers by
A2H
Top achievements
Rank 1
Alex
Top achievements
Rank 2
Share this question
or