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

Problem with RadPanelBar Sizing

2 Answers 56 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Eric Krauska
Top achievements
Rank 1
Eric Krauska asked on 08 Apr 2009, 02:38 PM
I have an issue in FireFox and Chrome where when initially entering a page, the first PanelItem is expanded incorrectly.  This only occurs when I have an image floating to the right of the PanelBar.  Review the code and test in Firefox or Chrome. You will need to replace the image with an actual image to view this behavior.  IE displays correctly.  Next, remove the image and then the PanelBar exhibits the correct behavior.  Is there a workaround for this?

<div> 
<telerik:RadScriptManager ID="_scriptManager" runat="server" /> 
<img alt="" style="float: right; margin-left: 15px;" src="images/kids4.gif" /> 
<telerik:RadPanelBar Width="500px" ExpandMode="SingleExpandedItem" ID="_faqs" Runat="server" Skin="Office2007">  
<Items> 
    <telerik:RadPanelItem runat="server" Text="Quesiton 1?">  
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Answer" /> 
        </Items> 
    </telerik:RadPanelItem> 
    <telerik:RadPanelItem runat="server" Text="q2?">  
        <Items> 
            <telerik:RadPanelItem runat="server" Text="answer." /> 
        </Items> 
    </telerik:RadPanelItem> 
    <telerik:RadPanelItem runat="server" Text="q3?">  
        <Items> 
            <telerik:RadPanelItem runat="server" Text="answer." /> 
        </Items> 
    </telerik:RadPanelItem>      
</Items> 
</telerik:RadPanelBar> 
</div> 

2 Answers, 1 is accepted

Sort by
0
Ted
Top achievements
Rank 1
answered on 08 Apr 2009, 04:03 PM
While this does look like a bug in the RadPanelBar, you can try this to temporarily fix the issue.  Put a div around the panelBar with style of float left

<

 

div style="float:left">

 

0
Paul
Telerik team
answered on 10 Apr 2009, 01:25 PM
Hi there,

Actually, we admit it's a bug in the control and we'll do our best to fix it for SP2. Meanwhile, a better workaround would be to use the following CSS style:

<style type="text/css">  
    div.RadPanelBar .rpItem:after  
    {  
        clearleft;  
    }  
    </style> 

Best wishes,
Paul
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
PanelBar
Asked by
Eric Krauska
Top achievements
Rank 1
Answers by
Ted
Top achievements
Rank 1
Paul
Telerik team
Share this question
or