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

RadPane scrollbars

1 Answer 426 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Frank Wanicka
Top achievements
Rank 1
Frank Wanicka asked on 01 Oct 2010, 05:24 PM
Are RadPanes supposed to provide scrollbars if the content is larger than the RadPane? I thought I saw that behavior when I was originally evaluaing the Docking control, but it's not doing it for me now in my project, nor in any of the Telerik demos on this site (Silverlight or WPF). Do I need to implement my own scrolling in anything that will be put into a RadPane?

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 06 Oct 2010, 06:38 AM
Hello Frank Wanicka,

Thank you for contacting us.

By default RadPane does not contain a ScrollViewer for its content. You can easily add a ScrollViewer by wrapping it around the content inside RadPane like so:
 
  <telerikDock:RadPane Header="Pane 1" IsSelected="True">
        <Grid Background="Transparent">
             <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
....
             </ScrollViewer>
        </Grid>
  </telerikDock:RadPane>


If you need further help, please contact us again.

Sincerely yours,
Dani
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Heath
Top achievements
Rank 1
commented on 14 Sep 2021, 11:49 AM | edited

Hi guys

Is there a native solution to the RadPane and the content? It appears to render the area it needs rather than have the scrollbar appear even with this solution. Scrollview doesn't bind to the viewable height of the panel in my case, unless I set the scrollviewer height, which I don't want as I'd like it to stretch to the pane height as it is adjusted.

I can't get, for example, the same type of behaviours like visual studio's panes where they are all indepentantly scrolling.

Cheers,

Vladimir Stoyanov
Telerik team
commented on 17 Sep 2021, 06:28 AM

I tested the suggested approach in a sample project on my end, however it works as intended. That is why I am attaching the project, which I used for testing purposes. Can you check it out and see how it differs from the setup on your end?

Should you need any further assistance, may I ask you to modify the shared project in order to demonstrate your scenario and send it back?

Heath
Top achievements
Rank 1
commented on 17 Sep 2021, 03:01 PM

Thanks Vladimir,

I found the issue. I am ussing MVVM for a radtabcontrol, which had some display templates.

         <DataTemplate x:Key="ContentTemplate">            
            <ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Auto">
                <ContentControl Content="{Binding Content}"/>
            </ScrollViewer>
        </DataTemplate>

of course, removing the scollviewer and everything worked. The only issue is, as not all other controls I load into the tab view have panes I will need to add scrolls to each. Thanks for your help!

Cheers,

Heath
Top achievements
Rank 1
commented on 17 Sep 2021, 03:24 PM



I now have a strange resizing issue. When I go to resize it the panel collapses to the right, and I can't resize it at all from that far potiion too.
Vladimir Stoyanov
Telerik team
commented on 21 Sep 2021, 10:25 AM

I am glad to hear that you were able to achieve the desired result with regards to the ScrollViewers.

As for the resizing scenario, I was not able to replicate this in the sample project I shared in my last reply. May I ask you to modify the project in order to demonstrate your setup and send it back? This will hopefully allow me to investigate it and better assist you. 

Tags
Docking
Asked by
Frank Wanicka
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or