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

RadListBox border

1 Answer 86 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
superold
Top achievements
Rank 1
superold asked on 06 Jan 2008, 07:56 PM
Hi! 

How can I remove the border of a RadListBox? can't seem to find the right property in the control tree. Thanks, 
- jorge
PS. I am on Q2SP1 

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 07 Jan 2008, 04:46 PM
Hi Jorge Delgado-Lopez,

Thank you for writing.

In order to hide the RadListBox border, you need to modify the Form_Load event handler. Access RadListBoxElement's BorderPrimitive and set the Visibility property to Collapsed as shown in the codeblock below:

(radListBox1.RootElement.Children[0].Children[1] as BorderPrimitive).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; 

Do not hesitate to contact us, if you need any additional assistance.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
superold
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or