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

Navigation problem when 2 panes have same header

4 Answers 55 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Twistur
Top achievements
Rank 1
Twistur asked on 30 Jun 2011, 09:43 PM
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?

4 Answers, 1 is accepted

Sort by
0
Twistur
Top achievements
Rank 1
answered on 05 Jul 2011, 09:38 PM
Am I trying to achieve the impossible? A comment from the Telerik team will be highly appreciated.
0
Petar Mladenov
Telerik team
answered on 06 Jul 2011, 09:56 AM
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!

0
Twistur
Top achievements
Rank 1
answered on 06 Jul 2011, 09:43 PM
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>

0
Twistur
Top achievements
Rank 1
answered on 08 Jul 2011, 11:22 PM
Using DropDownContentTemplate solves the problem.
Tags
Docking
Asked by
Twistur
Top achievements
Rank 1
Answers by
Twistur
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or