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

OverflowMode="Scroll" disappears when I Save/Load layout

2 Answers 67 Views
Docking
This is a migrated thread and some comments may be shown as answers.
B
Top achievements
Rank 2
B asked on 18 Mar 2015, 09:50 AM
When I use the following xaml:

<telerik:RadDocking.DocumentHost>
    <telerik:RadSplitContainer x:Name="mainDock">
        <telerik:RadPaneGroup x:Name="GroupMain"
                              ScrollMode="Item"
                              OverflowMode="Scroll"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              cal:RegionManager.RegionName="main" />
    </telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>

And then SaveLayout/LoadLayout the OverflowMode="Scroll" has disappeared.

When I use the following xaml:
<telerik:RadSplitContainer telerik:DockingPanel.InitialSize="450,450"
                           Name="LeftContainer" 
                           InitialPosition="DockedLeft"
                           Orientation="Horizontal">
    <telerik:RadPaneGroup x:Name="GroupTree"
                          ScrollMode="Item"
                          OverflowMode="Scroll"
                          ScrollViewer.HorizontalScrollBarVisibility="Auto"
                          cal:RegionManager.RegionName="index"
                          telerik:ProportionalStackPanel.RelativeSize="150, 200" />
</telerik:RadSplitContainer>

The OverflowMode has no effect at all, even before I use SaveLayout/LoadLayout

Is there a way to make layout save/load preserve the overflowmode?

Is there a way to get overflowmode working for a RadPaneGroup that is in another place then DocumentHost?

2 Answers, 1 is accepted

Sort by
0
B
Top achievements
Rank 2
answered on 20 Mar 2015, 09:40 AM
I tried to restore the OverflowMode for the RadPaneGroup in the DocumentHost using code behind, but I can't get that to work:

GroupMain.OverflowMode = Telerik.Windows.Controls.TabControl.TabOverflowMode.Scroll;
GroupMain.SetValue(ScrollViewer.HorizontalScrollBarVisibilityProperty, ScrollBarVisibility.Auto);
GroupMain.ScrollMode = TabControlScrollMode.Item;

Which I don't understand, that should work?
0
Vladi
Telerik team
answered on 20 Mar 2015, 10:44 AM
Hello,

In the current version of the RadDocking control the OverflowMode property is not supported. This property is visible because of inheritance between the RadPaneGroup and RadTabControl classes but it is not supported and setting it to one of its two enumeration values will not change the behavior of the group. This is why the OverflowMode is not persisted and saved by the SaveLayout functionality of the control.

You can use our feedback portal in order to log this as a feature request for the RadDocking control. The feedback portal is a public portal in which you can log and track the status of any feature request, bug report or general feedback that our staff and our community have logged.

Regards,
Vladi
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Docking
Asked by
B
Top achievements
Rank 2
Answers by
B
Top achievements
Rank 2
Vladi
Telerik team
Share this question
or