RadPanelBar Dynamic Binding - ExpanMode Issue

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

    Posted 16 Sep 2009 Link to this post

    This is my code for RadPanelBar which is in usercontrol:

                <Telerik:RadPanelBar runat="server" ID="RadPanelBar1"
                Width="100%" DataValueField="SomeVal" DataTextField="Name" >
                <CollapseAnimation Duration="100" Type="None" />
                <ExpandAnimation Duration="100" Type="None" />            
                <Items>
                    
                </Items>
                </Telerik:RadPanelBar>  

    UserControl Page_Load

                RadPanelBar1.ExpandMode = PanelBarExpandMode.SingleExpandedItem
                RadPanelBar1.DataFieldID = ""
                RadPanelBar1.DataFieldParentID = "Number"
                RadPanelBar1.DataSource = SomeObject
                RadPanelBar1.DataBind()


       Private Sub RadPanelBar1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelBar1.ItemDataBound
            Dim ChlRadPanelItem As New RadPanelItem
            ChlRadPanelItem.Value = "Something"
            ChlRadPanelItem.ItemTemplate = New ItemTemplate()
            RadPanelBar1.Items.Add(ChlRadPanelItem)
        End Sub

    Problem: PanelBar showing all items expanded
  2. Sunny
    Sunny avatar
    31 posts
    Member since:
    Aug 2009

    Posted 16 Sep 2009 Link to this post

    Issue Fixed:
    e.Item.Items.Add(ChlRadPanelItem)
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top