RadPanelBar with usercontrol - Expanding issue

2 posts, 0 answers
  1. Sunny
    Sunny avatar
    31 posts
    Member since:
    Aug 2009

    Posted 28 Oct 2009 Link to this post

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

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

     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  
    If Not Page.IsPostBack Then  
        RadPanelBar2.Items(0).Expanded = True
        RadPanelBar2.Items(0).Selected = True    
    End If 
    If Not RadPanelBar2.SelectedItem Is Nothing Then 
    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
    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 
    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?
  2. Paul
    Paul avatar
    4281 posts

    Posted 04 Nov 2009 Link to this post

    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top