Dave Galligher
Top achievements
Rank 2
Dave Galligher
asked on 20 Sep 2011, 10:09 PM
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.
Thank you in advance.
5 Answers, 1 is accepted
0
Hi Dave,
Thank you for writing.
You can hide the text box border, by setting the Visibility property of the BorderPrimitive to Collpased:
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,
Stefan
the Telerik team
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,
Stefan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Javier Gonzalez de Aragon
Top achievements
Rank 2
answered on 17 May 2012, 07:21 PM
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:
Thanks,
Javier
RadDropDownList.DropDownListElement.TextBox.Border.Visibility = Telerik.WinControls.ElementVisibility.Hidden
RadDateTimePicker.DateTimePickerElement.TextBoxElement.Border.Visibility = Telerik.WinControls.ElementVisibility.Hidden
Thanks,
Javier
0
Hello Javier,
Thank you for writing.
Yes, you can hide the borders of the desired controls. Here is how to do that:
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,
Stefan
the Telerik team
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,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Alex
Top achievements
Rank 2
answered on 24 Jul 2013, 06:25 PM
Can the border be removed on the ASP.Net version of the RadTextBox?
0
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.
Regards,
Stefan
Telerik
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.
Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
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 >>
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 >>