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

Unable to see nested PanelBar bars

1 Answer 45 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
ryan
Top achievements
Rank 1
ryan asked on 10 Sep 2010, 11:53 PM
When I nest panel bars such as below I'm unable to see the second-level RadPanelBarItem bars (although I CAN see their content):

<telerik:RadPanelBar ExpandMode="Multiple">
   <telerik:RadPanelBarItem>
      <telerik:RadPanelBarItem></telerik:RadPanelBarItem>
      <telerik:RadPanelBarItem></telerik:RadPanelBarItem>
      <telerik:RadPanelBarItem></telerik:RadPanelBarItem>
   </telerik:RadPanelBarItem>
</telerik:RadPanelBar>

So the above technique doesn't seem to work with the latest release of telerik silverlight.  Also, if I attempt to do this below instead then I'm unable to close the RadPanelBarItem's:

<telerik:RadPanelBar ExpandMode="Multiple"
   <telerik:RadPanelBar ExpandMode="Multiple"> > 
      <telerik:RadPanelBarItem></telerik:RadPanelBarItem
      <telerik:RadPanelBarItem></telerik:RadPanelBarItem
      <telerik:RadPanelBarItem></telerik:RadPanelBarItem
   </telerik:RadPanelBar
</telerik:RadPanelBar>


Is there another way I'm supposed to nest RadPanelBars?

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 16 Sep 2010, 12:23 PM
Hello Ryan,

RadPanelBarItem is a HeaderedItemsControl. This means that besides setting content, you need to give it a header as well:

<telerik:RadPanelBar ExpandMode="Multiple">
    <telerik:RadPanelBarItem Header="Root Header">
        <telerik:RadPanelBarItem>
            <!--Header-->
            <telerik:RadPanelBarItem.Header>
                <TextBlock Text="Sub Item Header" />
            </telerik:RadPanelBarItem.Header>
            <!--Content-->
            <StackPanel>
                <TextBlock Text="Content #1" />
                <TextBlock Text="Content #2" />
                <TextBlock Text="Content #3" />
            </StackPanel>
        </telerik:RadPanelBarItem>
    </telerik:RadPanelBarItem>
</telerik:RadPanelBar>

This will produce the following output:



Does this help? If not, could you please share more information about your scenario. I'd be glad to further assist you.

Regards,
Kiril Stanoev
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
ryan
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or