Turning off border on RadTextBox?

6 posts, 0 answers
  1. Dave Galligher
    Dave Galligher avatar
    37 posts
    Member since:
    May 2010

    Posted 20 Sep 2011 Link to this post

    Looking for a simple way to turn off the border drawing for the RadTextBox; since the control is based on the Microsoft Textbox I expected there to be a BorderStyle property but there isn't, making a composite control and the looking at using the RadTextBox on the control to take advantage of some of the AutoCompleteXXX properties. Any help how to turn off the border wonder be appreciated.

    Thank you in advance.
  2. Stefan
    Stefan avatar
    2908 posts

    Posted 23 Sep 2011 Link to this post

    Hi Dave,

    Thank you for writing.

    You can hide the text box border, by setting the Visibility property of the BorderPrimitive to Collpased:
    radTextBox1.TextBoxElement.Border.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

    I hope that you find this information helpful. If there is anything else we can assist you with, do not hesitate to contact us.
    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Javier Gonzalez de Aragon
    Javier Gonzalez de Aragon avatar
    35 posts
    Member since:
    Mar 2010

    Posted 17 May 2012 Link to this post

    Hi, is there a similar approach to hide the border on a DropDownList control and a DateTimePicker control? I've tried the following but isn't working:

    RadDropDownList.DropDownListElement.TextBox.Border.Visibility = Telerik.WinControls.ElementVisibility.Hidden
    RadDateTimePicker.DateTimePickerElement.TextBoxElement.Border.Visibility = Telerik.WinControls.ElementVisibility.Hidden


  4. Stefan
    Stefan avatar
    2908 posts

    Posted 22 May 2012 Link to this post

    Hello Javier,

    Thank you for writing.

    Yes, you can hide the borders of the desired controls. Here is how to do that:
    ((BorderPrimitive)radDropDownList1.DropDownListElement.Children[2]).Visibility = ElementVisibility.Collapsed;
    ((BorderPrimitive)radDateTimePicker1.DateTimePickerElement.Children[2]).Visibility = ElementVisibility.Collapsed;

    Off topic, please do not post questions in threads that are not related to the initial subject of a thread. This thread concerns the border of RadTextBox and should be used only for this subject., in order to allow the users searching for this information to find it easily. If you do not find a suitable thread, please open a new one. For more information regarding forum usage, please take a look at this thread: http://www.telerik.com/community/forums/winforms/editors/important-information-on-using-the-telerik-forums.aspx.

    I hope this helps.
    All the best,
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  5. Alex
    Alex avatar
    16 posts
    Member since:
    Nov 2012

    Posted 24 Jul 2013 Link to this post

    Can the border be removed on the ASP.Net version of the RadTextBox?
  6. Stefan
    Stefan avatar
    2908 posts

    Posted 26 Jul 2013 Link to this post

    Hi Alex,

    This forum concerns RadControls for WinForms, while your question is about RadControls for ASP.NET AJAX. Please address it in the appropriate forums so you can get adequate response: http://www.telerik.com/community/forums/aspnet-ajax.aspx.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top