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

Set default item Expanded and Selected

5 Answers 127 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Mike Faulkinbury
Top achievements
Rank 1
Mike Faulkinbury asked on 11 Apr 2009, 06:45 AM
Hi,

I am trying to load a page with the PanelBar already expanded and the first item (sub item) already selected.

My initial thought was to try this declaratively using the IsExpanded and IsSelected properties.  It looks like IsExpanded works as expected, but I can't get IsSelected to alter the style of the item (I would like it to appear the same way it appears after I click to select the item with the mouse).

Here's the declarative code:

<UserControl x:Class="BindingPanelBar.Page" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"           
    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"           
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation">  
 
 
    <Grid x:Name="LayoutRoot" Background="Wheat">  
 
        <telerikNavigation:RadPanelBar x:Name="rpbActivities" ExpandMode="Single">  
            <telerikNavigation:RadPanelBarItem x:Name="rpbiBeverages" IsExpanded="True">  
                <telerikNavigation:RadPanelBarItem.Header> 
                    <TextBlock>Beverages</TextBlock> 
                </telerikNavigation:RadPanelBarItem.Header> 
                <telerikNavigation:RadPanelBarItem x:Name="rpbiMilk" Header="Milk" IsSelected="True"></telerikNavigation:RadPanelBarItem> 
                <telerikNavigation:RadPanelBarItem x:Name="rpbiCoffee" Header="Coffee"></telerikNavigation:RadPanelBarItem> 
            </telerikNavigation:RadPanelBarItem> 
            <telerikNavigation:RadPanelBarItem x:Name="rpbiCondiments">  
                <telerikNavigation:RadPanelBarItem.Header> 
                    <TextBlock>Condiments</TextBlock> 
                </telerikNavigation:RadPanelBarItem.Header> 
            </telerikNavigation:RadPanelBarItem> 
            <telerikNavigation:RadPanelBarItem x:Name="rpbiOptions">  
                <telerikNavigation:RadPanelBarItem.Header> 
                    <TextBlock>Options</TextBlock> 
                </telerikNavigation:RadPanelBarItem.Header> 
            </telerikNavigation:RadPanelBarItem> 
        </telerikNavigation:RadPanelBar> 
 
    </Grid> 
 
</UserControl> 
 

Running this code, the beverages item is expanded, but Milk is not "selected" (style only changes after selected using mouse).

Can you help me get on the right track?

5 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 13 Apr 2009, 06:49 PM
Hi Mike,

We are aware of this bug and we will do our best to fix it in following few days, but unfortunately we can not insure that it will be fixed in the upcoming SP1 release.

Your Telerik Points have been updated for your involvement and reporting the issue.

Regards,
Ivan
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
James
Top achievements
Rank 1
answered on 13 May 2009, 02:15 AM
Has this issue been fixed? is there's a new vesrion/patches for that? When does this issue suppose to be resolved?

Thanks in Advance
0
Valentin.Stoychev
Telerik team
answered on 14 May 2009, 07:23 AM
Hello James,

This is scheduled for fixing for the upcoming ServicePack2 which should be live within the next 2 weeks.

Greetings,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
sunu
Top achievements
Rank 1
answered on 18 Jun 2009, 11:38 AM
hi

I have also faced the same. Is it fixed now ?
0
Tihomir Petkov
Telerik team
answered on 22 Jun 2009, 03:54 PM
Hi Sunu,

Yes, the issue is fixed in our latest release.

Kind regards,
Tihomir Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
PanelBar
Asked by
Mike Faulkinbury
Top achievements
Rank 1
Answers by
Ivan
Telerik team
James
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
sunu
Top achievements
Rank 1
Tihomir Petkov
Telerik team
Share this question
or