Collapsible Panel not disabling

2 posts, 0 answers
  1. Janni
    Janni avatar
    33 posts
    Member since:
    Aug 2010

    Posted 06 Jan 2011 Link to this post

    Hi,
    I had one radpanelbar in my application. In that, inside of rad-panel the data should be collapsible. But the parent must not be collapsible.It should simple display the details.
    Here is my code and i attached the image of this scenario.
     
    Code
     
    <div class="leftmenu">
    <telerik:RadPanelBar EnableEmbeddedSkins="false" Width="308px" CssClass="radleftMenu"
     OnItemDataBound="RadPanelBar1_ItemDataBound" OnLoad="RadPanelBar1_Load" AllowCollapseAllItems="false"
     Skin="Web20" runat="server" ID="radMenuManagerNavigation">
    </telerik:RadPanelBar>
     
    <div id="divMainDocument" runat="server" style="background-color: #5B90A6; margin-left: 10px;
     margin-top: 10px; margin-bottom: 10px; margin-right: 10px;">
    <telerik:RadPanelBar EnableEmbeddedSkins="false" Width="308px" CssClass="radleftMenu"
        AllowCollapseAllItems="false" Skin="Web20" runat="server" ID="RadPanelBar1">
       </telerik:RadPanelBar>
      </div>
       </div>
      </asp:Panel>
     
    .cs code:
     
    protected void RadPanelBar1_ItemDataBound(object sender, Telerik.Web.UI.RadPanelBarEventArgs e)
            {
            }
     
    protected void RadPanelBar1_Load(object sender, EventArgs e)
            {
                UrlQueryStringPasser url = new UrlQueryStringPasser();
                foreach (RadPanelItem item in radMenuManagerNavigation.GetAllItems())
                {
                    if (item.Level == 0)
                    {
                        if (item.Items.Count != 0)
                            if (item.Level != 2)
                                item.Expanded = true;
                    }
     
     
                    if (url[UIConfigurationConstant.CODE] != null)
                        if (item.Value == url[UIConfigurationConstant.CODE].ToString())
                        {
                            item.Selected = true;
                            if (item.Items.Count != 0)
                                item.Expanded = true;
                        }
                }
            }

    Please look over the image attached, that may help to recover my problem.


    Thanks,
    Janni
  2. Janni
    Janni avatar
    33 posts
    Member since:
    Aug 2010

    Posted 14 Jan 2011 Link to this post

    Hi Team,

    Is there anyone to solve my issue?


    Thanks,
    Janni.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top