Make radtxtbox look like regular textbox

2 posts, 0 answers
  1. Mike
    Mike avatar
    4 posts
    Member since:
    Aug 2012

    Posted 15 Feb 2013 Link to this post

    Does anyone know how to make the radtxtbox have the same appearance as the regular asp textbox? The regular one has more of a 3d appearance (I guess some dropped shadow stuff going on) where as the radtxtbox just looks flat.

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

    Posted 20 Feb 2013 Link to this post

    Hi Mike

    Try the following aspx and JS to make the RadTextBox look like a asp TextBox.
    aspx:
    <telerik:RadTextBox ID="RadTextBox1" runat="server">
      <ClientEvents OnLoad="TextBoxLoad" />
    </telerik:RadTextBox>
    JS:
    <script type="text/javascript">
     function TextBoxLoad(sender, args)
     {
       sender._textBoxElement.className = "";
       sender.get_styles().EnabledStyle[1] = "";
       sender.get_styles().HoveredStyle[1] = "";
       sender.get_styles().FocusedStyle[1] = "";
     }
    </script>

    Thanks
    Princy
Back to Top