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

Automatically expand the PanelBar item

1 Answer 162 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 1
Arun asked on 11 Nov 2014, 03:49 AM
I am using Rad PanelBar.I want to show all item on load the page.That means need to automatically expand the items.

Here is my code

<telerik:RadPanelBar BorderBrush="#F0F0F0" Margin="-66,57,1195,-3">
          <telerik:RadPanelBarItem  DropPosition="Inside" Header="DEVICE" Background="#FF42545E" BorderBrush="#FF42545E" FontSize="14" >
              <telerik:RadPanelBarItem  Header="Add new Device" Foreground="Black" Cursor="Hand" FontSize="14" Margin="0,10,0,0" />
              <telerik:RadPanelBarItem Header="Print" Foreground="Black" Cursor="Hand" FontSize="14" Margin="0,10,0,0" />
              <telerik:RadPanelBarItem Header="De-allocate All" Foreground="Black" Cursor="Hand" FontSize="14" Margin="0,10,0,0" />
          </telerik:RadPanelBarItem>
      </telerik:RadPanelBar>
How can we do this..Can any one help?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 13 Nov 2014, 01:16 PM
Hi Arun,

You can expand a RadPanelBarItem by setting its IsExpanded property to True. In order to expand all items on load of the application you can create an implicit Style and set the IsExpanded property for all items.

Here is an example:
<Window.Resources>
  <
Style TargetType="telerik:RadPanelBarItem" BasedOn="{StaticResource RadPanelBarItemStyle}">
    <Setter Property="IsExpanded" Value="True" />
  </Style>
</Window.Resources>

Please give it a try and let me know if it works for you.

Regards,
Martin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PanelBar
Asked by
Arun
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or