How do I remove the listbox border?

6 posts, 1 answers
  1. fred williams
    fred williams avatar
    55 posts
    Member since:
    Feb 2010

    Posted 12 Jan 2011 Link to this post

    I tried the "borderstyle="none" but it didn't work. Thanks!
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Jan 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. fred williams
    fred williams avatar
    55 posts
    Member since:
    Feb 2010

    Posted 14 Jan 2011 Link to this post

    Perfect, thanks!
  5. Albert Shenker
    Albert Shenker avatar
    551 posts
    Member since:
    Mar 2004

    Posted 06 Jan 2012 Link to this post

    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?
  6. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 09 Jan 2012 Link to this post

    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
  7. Albert Shenker
    Albert Shenker avatar
    551 posts
    Member since:
    Mar 2004

    Posted 10 Jan 2012 Link to this post

    That did the trick. Thank you!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017