Navigation problem when 2 panes have same header

5 posts, 0 answers
  1. Twistur
    Twistur avatar
    28 posts
    Member since:
    Jun 2011

    Posted 30 Jun 2011 Link to this post

    Guys, I notice that the navigation menu for the pane is not working as intended if there are 2 panes with the same name. They will appear in the menu as separate item but clicking on all of them will just focus/activate the first pane. For example, you have panes with header "A", "B","C", "A". They appear correctly in the menu but the A's focus are linked only to the first pane. How do I go about this?
  2. Twistur
    Twistur avatar
    28 posts
    Member since:
    Jun 2011

    Posted 05 Jul 2011 Link to this post

    Am I trying to achieve the impossible? A comment from the Telerik team will be highly appreciated.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 06 Jul 2011 Link to this post

    Hi Twistur,

    A known WPF/ SL issue is that when Items in ItemsControl have same Headers, in certain situations when making a selection, the first item with this Header is selected, not the desired one. However, having this in mind I was unable to reproduce this nor in the RadTabControl, neither in the RadPane with mouse clicking. Could you please elaborate more on your scenario and what are the steps you perform in order to encounter such behavior? This way we would be better able to assist you and advice you. Thank you in advance.

    Greetings,
    Petar Mladenov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  5. Twistur
    Twistur avatar
    28 posts
    Member since:
    Jun 2011

    Posted 06 Jul 2011 Link to this post

    Hi Petar

    I made a naive application for my situation. Try clicking on different menu items on the right.
    <Window x:Class="TelerikRadDocking.MainWindow"         
    xmlns
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         
    xmlns
    :x="http://schemas.microsoft.com/winfx/2006/xaml"         
    Title
    ="MainWindow" Height="350" Width="525"
     xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">     
    <Grid>         
    <telerik:RadDocking HasDocumentHost="True" HorizontalAlignment="Stretch" Margin="21,24,133,85" Name="radDocking1" VerticalAlignment="Stretch"                            
     Unpin="radDocking1_Unpin" PaneStateChange="radDocking1_PaneStateChange" PreviewClose="radDocking1_PreviewClose" Close="radDocking1_Close" >             
    <telerik:RadDocking.DocumentHost>             
    <telerik:RadSplitContainer>                 
    <telerik:RadPaneGroup Name="radPaneGroup1" HorizontalAlignment="Stretch"
                                            VerticalAlignment="Stretch"
                                          OverflowMode="Wrap"
                                          DropDownDisplayMode="Visible"
                                          DisplayMemberPath="Title"
                                          ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                          ScrollViewer.HorizontalScrollBarVisibility="Auto"  >  
                           
    <telerik:RadPane Header="A"/>   
                          
    <telerik:RadPane Header="B"/>        
                     
    <telerik:RadPane Header="C"/>            
                 
    <telerik:RadPane Header="A"/>               
              
    <telerik:RadPane Header="B"/>                 
            
    <telerik:RadPane Header="C"/>                 
        
    </telerik:RadPaneGroup>            
     
    </telerik:RadSplitContainer>           
      
    </telerik:RadDocking.DocumentHost>    
         
    </telerik:RadDocking>              
       
    </Grid>
    </Window>

  6. Twistur
    Twistur avatar
    28 posts
    Member since:
    Jun 2011

    Posted 08 Jul 2011 Link to this post

    Using DropDownContentTemplate solves the problem.
Back to Top
UI for WPF is Visual Studio 2017 Ready