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

Remove all borders from RadPanelBar

10 Answers 445 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 12 Jun 2009, 01:38 AM
I have a RadPanelBar with No skin and would like to remove all borders and underlines.  I can not seem to get rid of the border on the Non expanded panel bar.  I am using RadControls for ASPNET AJAX Q1 2009.  Css and Asp below.

Any help would be appreciated.

Thanks
Doug

    .RadPanelBar .rpRootGroup,  
    .RadPanelBar .rpRootGroup .rpLink
    {  
         border: none !important;  
         color: #5F5F5F;
         text-decoration: none;
    }
    .RadPanelBar .rpRootGroup .rpGroup .rpLink:hover  
    {  
         border: none !important;  
         text-decoration: underline;
    }  
     .RadPanelBar .rpRootGroup .rpExpandable:link
     {
         text-decoration: none;
         border: none !important;  
     }

    .panelbarItem
    {
      color: #5F5F5F;
      font-size: 10pt;
         cursor: pointer;
         text-decoration: none;
         padding-left: 60px;
         height: 26px;
         border: none !important;  
    }
 
<telerik:RadPanelBar ID="RadPanelBar2" runat="server" EnableEmbeddedSkins="false"
         Width="450"  
         Skin=""
         OnItemDataBound="RadPanelbar1_ItemDataBound"
         OnItemClick="RadPanelbar1_ItemClick" ExpandMode="MultipleExpandedItems">
    <ExpandAnimation Type="OutQuint" Duration="900" />
</telerik:RadPanelBar>



10 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Jun 2009, 06:42 AM
Hi Doug,

I tried following CSS for removing borders and underlines from RadPanelBar.

CSS:
 
<style type="text/css">  
.RadPanelBar .rpRootGroup,    
.RadPanelBar .rpRootGroup .rpLink  
{    
     bordernone !important;    
     color#5F5F5F;  
     text-decorationnone;  
     border-bottom-width0px !important;  
}  
.RadPanelBar .rpOut  
{  
    border-bottom-width0px !important;  
}  
</style> 

Thanks,
Princy.
0
Doug
Top achievements
Rank 1
answered on 12 Jun 2009, 01:54 PM
That worked!

Thanks,
Doug
0
Dhanalakshmi a
Top achievements
Rank 1
answered on 16 Jul 2009, 12:54 PM
Hey,  thanx ,it was such a great help,
i had tried, changing the styles in the customized skin and even in the telerik base class,
but cudn get rid of the borders,
i had spent nearly 5 hrs, for this alone,
 thnks,
0
Joe
Top achievements
Rank 1
answered on 20 Jul 2009, 03:18 AM
thanks, it solved an issue!!
0
David Blok
Top achievements
Rank 1
answered on 16 Dec 2009, 10:22 AM
Hi, I tried the css code aswell and it worked fine, only 1 thing is weird in it.

If i hover over a panel item, the text moves 1px down for some reason, can't figure out where its comming from since the ccs only contains the code from above.
0
Devi Ganesan
Top achievements
Rank 1
answered on 11 Mar 2010, 01:40 PM
hi,

thanks this solved my problem..
0
Chris Cooper
Top achievements
Rank 1
answered on 27 Nov 2010, 03:08 AM
Thanks Princy, Your solution worked for me too.
0
Arno
Top achievements
Rank 2
answered on 27 Dec 2010, 03:30 PM
Hello,

Princy's code worked for me as well, but I also ran into the problem David mentioned: the content below the panel item moves one pixel down when I hover over it. I was able to remove that behaviour using this CSS instead of Princy's version. It changes the border colors to my background color (white):

.RadPanelBar .rpRootGroup,
.RadPanelBar .rpRootGroup .rpLink
{
     border-color: #FFF
}
 
.RadPanelBar .rpOut
{
    border-color: #FFF
}

Perhaps Telerik can provide an easier way to remove all borders from RadPanelBar in a future version.

Another issue: I am using both a text and a (expand) image in the upper panel, and I noticed that the text was positioned a bit too low. I fixed that with this CSS:

.RadPanelBar .rpText
{
    position:relative;
    top:2px
}

Just in case someone can use it...
0
Kamen Bundev
Telerik team
answered on 29 Dec 2010, 07:41 PM
Hi,

The "jumping" is caused by the 1px bottom padding .rpOut is adding on hover to compensate for the missing border. Princy's CSS, changed like this should take care of it:
.RadPanelBar .rpRootGroup
{
     border: none !important;
     color: #5F5F5F;
     text-decoration: none;
}
.RadPanelBar .rpRootGroup .rpLink,
.RadPanelBar .rpRootGroup .rpOut
{
    border: 0 !important;
    padding: 0 !important;
}


Regards,
Kamen Bundev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Arno
Top achievements
Rank 2
answered on 02 Jan 2011, 04:59 PM
Thanks Kamen, that works fine!
Tags
PanelBar
Asked by
Doug
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Doug
Top achievements
Rank 1
Dhanalakshmi a
Top achievements
Rank 1
Joe
Top achievements
Rank 1
David Blok
Top achievements
Rank 1
Devi Ganesan
Top achievements
Rank 1
Chris Cooper
Top achievements
Rank 1
Arno
Top achievements
Rank 2
Kamen Bundev
Telerik team
Share this question
or