This is a migrated thread and some comments may be shown as answers.

RadPanelBar UNABLE to EXPAND/COLLAPSE

1 Answer 133 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Adrian Eng Ying Ming
Top achievements
Rank 1
Adrian Eng Ying Ming asked on 09 Aug 2010, 10:56 AM
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.

   

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 Aug 2010, 02:18 PM
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
Tags
PanelBar
Asked by
Adrian Eng Ying Ming
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or