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

RadPanelBar with usercontrol - Expanding issue

1 Answer 107 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Sunny
Top achievements
Rank 1
Sunny asked on 28 Oct 2009, 03:26 PM

I have a panelbar with usercontrols loading in it. see code below,



<Telerik:RadPanelBar ID="RadPanelBar2" runat="server" PersistStateInCookie="true" Height="500" Width="100%" > 
 
</Telerik:RadPanelBar> 

Protected
 Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
RadPanelBar2.ExpandMode = PanelBarExpandMode.FullExpandedItem  
RadPanelBar2.DataFieldID = ""  
RadPanelBar2.DataFieldParentID = "ID1"  
RadPanelBar2.DataTextField = "Name"  
RadPanelBar2.DataValueField = "Text"  
RadPanelBar2.DataSource = MyDS  
RadPanelBar2.DataBind()  
If Not Page.IsPostBack Then  
    RadPanelBar2.Items(0).Expanded = True
    RadPanelBar2.Items(0).Selected = True    
End If 
If Not RadPanelBar2.SelectedItem Is Nothing Then 
    LoadUsercontrol(RadPanelBar2.SelectedItem.Text) 
End If 
End Sub 
 
Private Sub RadPanelBar2_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelBar2.ItemDataBound
Dim newPanelItem As New RadPanelItem
e.Item.Items.Add(newPanelItem)
End Sub

Protected Sub LoadUsercontrol(ByVal selectedItem As String
 
    Dim pItem As RadPanelItem = DirectCast(RadPanelBar2.FindItemByText(selectedItem), RadPanelItem) 
 
    Dim smControl As SomeControl  
    smControl = CType(LoadControl("MyControls/SomeControl.ascx"), SomeControl)  
    smControl.MyID = pItem.Value 
    pItem.Controls.Add(smControl) 
End Sub


Problem: In the User control I have a hierarchy grid. The code above is inside content page. When I click rows (hierarchy) in the grid the panel item is expanding, but the radpanel is hiding in content page.

Even if I reduce the height to 400px no use.

How to fix this?

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 04 Nov 2009, 11:26 AM
Hello Sunny,

I think it will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

All the best,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
PanelBar
Asked by
Sunny
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or