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

ScrollablePanel not showing scrollbar

7 Answers 1103 Views
ScrollablePanel
This is a migrated thread and some comments may be shown as answers.
Florian
Top achievements
Rank 1
Florian asked on 13 Aug 2015, 01:04 PM

Hi there,

 

i have the following problem:

 

I have a RadScrollablePanel.

 Inside this Panel i added two RadGroupBox-Controls.

The first is positioned in the upper left corner with Anchor = Left Top Right and minimum size of 300

The second is positioned in the upper right corner with Anchor = Top Right.

 Now when resizing my Form, i expected when the Minium size is reached, the Scrollable Panel should show scrollbar. 

I added an example project

Thanks Florian Keller

 

 

7 Answers, 1 is accepted

Sort by
0
Florian
Top achievements
Rank 1
answered on 13 Aug 2015, 02:12 PM

Missed the project, have not noticed, i cant upload it.

 Made a gif and took screen shot from Doc-Outline

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 14 Aug 2015, 11:57 AM
Hello Florian,

Thank you for writing.

I would like to note that RadScrollablePanel is supposed to show scrollbars when some of the content controls are positioned at a location outside the panel size. However, in the described scenario and the illustrated gif file, when shrinking RadScrollablePanel, the two RadGroupBox controls are repositioned and at a certain point they overlap each other. None of them is outside the visible area of RadScrollablePanel. That is why the scrollbars are not shown. Similar behavior is observed with a standard MS Panel (AutoScroll=true) and GroupBox controls. Please refer to the attached gif file.

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Florian
Top achievements
Rank 1
answered on 14 Aug 2015, 12:27 PM

Same behaviour in Visual Studio Designer View. The Panels are rendered outside the Form.

See Attached gif

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 14 Aug 2015, 03:06 PM
Hello Florian,

Thank you for writing back.
 
It is normal that the design time resizing behavior is similar to the one. Note that exactly the same behavior is observed with the standard MS controls. In order to show the horizontal scrollbar when shrinking the form, you should leave the radGroupBox2.Anchor property to its default value Top|Left.

I hope this information helps. If you have any additional questions, please let me know.

Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Florian
Top achievements
Rank 1
answered on 15 Aug 2015, 12:34 PM

Thanks for your answer.

 This is not the behaviour i need.

 I made an example with WPF-Controls, see attached gif.

Xaml:

<Window x:Class="WpfApplication1.MainWindow"
        Title="MainWindow" Height="340" Width="526">
    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
        <Grid Height="250" HorizontalAlignment="Stretch" VerticalAlignment="Top">
 
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" MinWidth="150"/>
                <ColumnDefinition Width="150"/>
            </Grid.ColumnDefinitions>
 
 
            <GroupBox Grid.Column="0" Background="Blue"/>
            <GroupBox Grid.Column="1" Background="Red"/>
        </Grid>
    </ScrollViewer>
 
</Window>

0
Florian
Top achievements
Rank 1
answered on 15 Aug 2015, 12:55 PM

Ok got it working.

 Wrap both GroupBoxes in RadLayoutControl. Set Dock = Fill for RadLayoutControl.

 Set MinSize for Left LayoutControlItem.

Set MinSize and MaxSize for Right LayoutControlItem.

 

 

0
Stefan
Telerik team
answered on 17 Aug 2015, 06:21 AM
Hi Florian,

I am glad to hear you managed to find a suitable solution for your case.

RadLayoutControl is the latest addition to the suite, so if you have any feedback about it, we will be happy to hear it.

Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ScrollablePanel
Asked by
Florian
Top achievements
Rank 1
Answers by
Florian
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Stefan
Telerik team
Share this question
or