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

Raddocking bug or strange behavior related to RadPropertyGrid

1 Answer 71 Views
Docking
This is a migrated thread and some comments may be shown as answers.
TT
Top achievements
Rank 1
TT asked on 25 Jan 2017, 01:04 AM

Hello,

 

I'm currently using the free trial TelerikDevCraftUltimateSetup_2016_4_1317_1 have found some strange behavior or a bug whilst trying to recreate an existing layout I want to replicate.

I have some RadPane's which needs to be docked as unpinned so they slide in and out when clicked. Inside the PadPane is a RadTabControl with 3 tabs.If I then put a PropertyGrid inside a RadTabItem the RadPane no longer stays open when a tab item is clicked. Is this a bug? Is there a way to stop this happening?

 

I've attached an example showing the problem

On the attached,

1. Click Header2 to unhide the pane (keep unpinned)

2. If you click between the 2 tabs with headers "Works Okay" you can see the expected behavior where the panel does not slide away

3. If you click on the tab with header "Not Working" and then then another tab the panel slides out of view. This tab contains a RadPropertyGrid. How can this be prevented?

 

MainWindow.xaml:

<telerik:RadWindow x:Class="WpfApp1.MainWindow"
        Header="MainWindow" Height="500" Width="800">
    <Grid>
        <telerik:RadDocking x:Name="radDocking1"
                            RetainPaneSizeMode="DockingAndFloating">
 
            <telerik:RadSplitContainer Name="LeftContainer"
                                       InitialPosition="DockedLeft">
                <telerik:RadPaneGroup x:Name="Group1">
 
                    <telerik:RadPane x:Name="mtPane" Header="Header1">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
            <telerik:RadSplitContainer x:Name="RightContainer"
                                       InitialPosition="DockedRight">
                <telerik:RadPaneGroup x:Name="Group2" Margin="-310,0,6,0">
 
                    <telerik:RadPane x:Name="ssPane"
                                         Header="Header2"
                                         IsPinned="false">
                        <Grid HorizontalAlignment="Stretch"
                                  VerticalAlignment="Stretch" >
                            <Grid HorizontalAlignment="Stretch"
                                      VerticalAlignment="Top" >
 
                            </Grid>
                            <telerik:RadTabControl x:Name="radTabControl"
                                                   HorizontalAlignment="Stretch"
                                                   VerticalAlignment="Stretch">
                                <telerik:RadTabItem x:Name="RadTabSettings"
                                                    Header="Works Okay"
                                                    Height="30">
 
                                </telerik:RadTabItem>
 
                                <telerik:RadTabItem x:Name="RadTabSelections"
                                                    Header="Works Okay"
                                                    Height="30">
                                </telerik:RadTabItem>
 
                                <telerik:RadTabItem x:Name="RadTabStaking"
                                                    Header="Not Working" >
 
                                    <telerik:RadPropertyGrid x:Name="propertyGridEventStaking">
 
                                    </telerik:RadPropertyGrid>
                                </telerik:RadTabItem>
                            </telerik:RadTabControl>
                        </Grid>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
        </telerik:RadDocking>
    </Grid>
</telerik:RadWindow>

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 27 Jan 2017, 01:17 PM
Hello,

Thank you for the detailed information regarding the issue you are experiencing.

It is replicated due to the RadPane being set to inactive. This happens in some specific scenarios with combination of couple of controls and their focus handling. A possible approach for this case would be to implement a custom IFlyoutBehavior, as demonstrated in the Unpined-radpane-behaviour forum thread. Through it you can handle when a given pane is pinned or unpinned.

Another option would be to simply use the standard MS TabControl, as it seems that its selection does not interfere with the default implementation of the IFlyoutBehavior.

I hope this helps. Feel free to update me should you need further assistance.

Regards,
Stefan X1
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Docking
Asked by
TT
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or