Set default item Expanded and Selected

6 posts, 0 answers
  1. Mike Faulkinbury
    Mike Faulkinbury avatar
    3 posts
    Member since:
    Jun 2008

    Posted 11 Apr 2009 Link to this post

    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?
  2. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 13 Apr 2009 Link to this post

    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.
  3. DevCraft banner
  4. James
    James avatar
    26 posts
    Member since:
    Oct 2008

    Posted 12 May 2009 Link to this post

    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
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 14 May 2009 Link to this post

    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.
  6. sunu
    sunu avatar
    19 posts
    Member since:
    Jun 2009

    Posted 18 Jun 2009 Link to this post

    hi

    I have also faced the same. Is it fixed now ?
  7. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 22 Jun 2009 Link to this post

    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.
Back to Top
DevCraft banner