Enable Panel bar items expanded

3 posts, 0 answers
  1. jeevitha
    jeevitha avatar
    63 posts
    Member since:
    Sep 2008

    Posted 02 Dec 2009 Link to this post

    Hi,
    I am using Panelbar control as my left navigation menu. I need to show the panelbar as expanded and show all the submenu items when the page loading. what property i shod use for enabling this. I used  ExpandMode="MultipleExpandedItems"  . but doesnt work

    Thanks,
    Jeevitha
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Dec 2009 Link to this post

    Hello Jeevitha,

    You can try the following code snippet in order to expand all the items in the RadPanelBar.

    CS:
     
        protected void RadPanelBar1_Load(object sender, EventArgs e) 
        { 
            foreach (RadPanelItem item in RadPanelBar1.GetAllItems()) 
            { 
                if (item.Items.Count != 0) 
                { 
                    item.Expanded = true
                } 
            } 
        } 

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. jeevitha
    jeevitha avatar
    63 posts
    Member since:
    Sep 2008

    Posted 02 Dec 2009 Link to this post

    Thanks.. it works
Back to Top