1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Setting a specific panel of RadPanelBar to expand

Setting a specific panel of RadPanelBar to expand

2 posts, 0 answered
  1. Salman
    Salman avatar
    18 posts
    Registered:
    07 Nov 2007
    24 Nov 2007
    Link to this post
    Hi,
    I have added a RadPanelBar in a page created using SiteFinity. RadPanelBar is bound with an XmlDataSource. I want a specific panel to show in expanded state but i am not finding any propery that i can set to do so. Can you help?
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    26 Nov 2007
    Link to this post
    Hello Salman,

    RadPanelbar Expanded Property gets or sets the value indicating whether the panel item is expanded. It is true if the panel item is expanded; otherwise, false. The default is false. For example, the following implementation will expand only the item with Text "AboutUs":

    public void RadPanelbar1_ItemDataBound(object sender, RadPanelbarEventArgs e) 
        { 
            if (e.Item.Text == "AboutUs"
                e.Item.Expanded = true
        } 

    Let us know if you need any further assistance.

    Sincerely yours,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered