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

How do I remove the listbox border?

5 Answers 902 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
fred williams
Top achievements
Rank 1
fred williams asked on 12 Jan 2011, 04:44 PM
I tried the "borderstyle="none" but it didn't work. Thanks!

5 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 13 Jan 2011, 10:55 AM
Hello,


Add the following CSS on page to hide the border of RadListBox.

CSS:
<style type="text/css">
    .RadListBox_Default .rlbGroup
    {         
        border: none !important;
    }
</style>



-Shinu.
0
fred williams
Top achievements
Rank 1
answered on 14 Jan 2011, 07:59 PM
Perfect, thanks!
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 06 Jan 2012, 07:47 PM
this solution doesn't seem to work when using header and footer templates in the listbox (in Q3 2011 controls). How can I ermov the listbox border now?
0
Kate
Telerik team
answered on 09 Jan 2012, 01:11 PM
Hi Albert,

Depending on the appearance that you need to get you can remove the border by using one of the following css class selectors (the first one removes the outer borders of the templates of RadListBox control while the second one removes the inner ones) 

<style type="text/css">
        div.RadListBox .rlbTemplateContainer
        {
            border-width: 0px;
        }
         
        div.RadListBox_Default .rlbGroup
        {
            border: 0px solid #8E8E8E;
        }
    </style>


Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 10 Jan 2012, 03:16 PM
That did the trick. Thank you!
Tags
ListBox
Asked by
fred williams
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
fred williams
Top achievements
Rank 1
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Kate
Telerik team
Share this question
or