RadPanelBar UNABLE to EXPAND/COLLAPSE

2 posts, 0 answers
  1. Adrian Eng Ying Ming
    Adrian Eng Ying Ming avatar
    16 posts
    Member since:
    Mar 2010

    Posted 09 Aug 2010 Link to this post

    Hi there,
        i have a UI structure in the below manner:
        frmMain.aspx -> RadPanelBar(1) -> RadGrid (popup editmode using custom webControls) -> EditForm(uscWebControl.ascx) ->RadPanelBar(2) ->Grid.
       When i structure my entire control in such a manner, RadPanelBar(2) would render useless as it's no longer able to expand and collapse. however, if i where to remove the first RadPanelBar(1), the second RadPanelBar (display under the radgird editform user control) would the return to its normal function.
        Is there a reason why, RadPanelBar(2) is unable to expand under such circumstances? is there a solution without changing my entire structure (i.e.: still using RadGrid PopupEditMode)? 


    Best Regards,
    Adrian.

       

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 11 Aug 2010 Link to this post

    Hi Adrian,

    If you use item template then you need to have a child item for your root items. With content template this is not necessary. You can read more about templates in this help topic.

    Here is a sample code for reference:
    <%--item template--%>
       <telerik:RadPanelBar ID="RadPanelBar1" runat="server">
           <Items>
               <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1">
                   <Items>
                       <telerik:RadPanelItem runat="server" >
                           <ItemTemplate>
                               grid 1
                           </ItemTemplate>
                       </telerik:RadPanelItem>
                   </Items>
               </telerik:RadPanelItem>
               <telerik:RadPanelItem runat="server" Text="Root RadPanelItem2">
                   <Items>
                       <telerik:RadPanelItem runat="server" >
                           <ItemTemplate>
                               grid 2
                           </ItemTemplate>
                       </telerik:RadPanelItem>
                   </Items>
               </telerik:RadPanelItem>
           </Items>
          
       </telerik:RadPanelBar>
      <%-- content template--%>
       <telerik:RadPanelBar ID="RadPanelBar2" runat="server">
           <Items>
               <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1">
                   <ContentTemplate>
                       grid 1
                   </ContentTemplate>
               </telerik:RadPanelItem>
               <telerik:RadPanelItem runat="server" Text="Root RadPanelItem2">
                   <ContentTemplate>
                       grid 2
                   </ContentTemplate>
               </telerik:RadPanelItem>
           </Items>
       </telerik:RadPanelBar>


    Regards,
    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top