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

RadPane not showing Scrollbar with Traditional approach and Prism ?

3 Answers 73 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Arpit
Top achievements
Rank 1
Arpit asked on 04 Mar 2011, 02:30 PM
Hi,
     I am not able to apply the scrollbar, either by using the scrollviewer inside the radpane.

<telerikDocking:RadSplitContainer  x:Name="BottomContainer" InitialPosition="DockedBottom">
                <telerikDocking:RadPaneGroup x:Name="Group4">
                    <telerikDocking:RadPane x:Name="PaneStatusMessage" Header="Status messages">
                        <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                         <ListBox Width="Auto" Height="Auto" teleriktheme:StyleManager.Theme="Expression_Dark">
                            <ListBoxItem Content="Item1" teleriktheme:StyleManager.Theme="Expression_Dark"/>
                            <ListBoxItem Content="Item1" teleriktheme:StyleManager.Theme="Expression_Dark"/>
                        </ListBox>
                       </ScrollViewer>
                  </telerikDocking:RadPane>
           </telerikDocking:RadPaneGroup>
  </telerikDocking:RadSplitContainer> 

also not able to apply the same using following property  in the same code above-

<telerikDocking:RadPane x:Name="PaneStatusMessage" Header="Status messages"  ScrollViewer.HorizontalScrollBarVisibility="Auto">

please help me in this regards.

If you have the solution to this approach( traditional approach), I request to please also give the solution on how to apply the scrollbar  to radPane when we use radPane as a region ( Prism approach).

eg:
 <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer x:Name="MainPageContainer"  >
                <telerik:RadPaneGroup x:Name="Group5">
                    <telerik:RadPane x:Name="MyMainRegion" Header="Main Region" FontSize="10.667"  regions:RegionManager.RegionName="MyMainRegion" Visibility="Collapsed" CanUserClose="False" ScrollViewer.HorizontalScrollBarVisibility="Auto"  >
                       <!-- Even Above Highlighted Bold code is not helping -->
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 09 Mar 2011, 11:33 AM
Hello Arpit,

 The ScrollViewer attached properties don't work as expected when attached to the RadPane control, because it doesn't have a ScrollViewer in its template. If you need to show a scroll bar for the content of the pane you can either wrap the content of the pane in a ScrollViewer (as you suggested) or to change the ControlTemplate of the RadPaneGroup and add a ScrollViewer around the presenter of the selected pane.

I tried the scenario with the ScrillViewer and it looks it is working fine.

If you need to use this with Prism I would suggest you to place a ContentPresenter inside the ScrollViewer and use it as a region instead of marking the RadPane control as a region. You could also use the other approach I described - change the ControlTemplate of the RadPaneGroup and add ScrollViewer there.

If you need further assistance, don't hesitate to ask!

Greetings,
Miroslav Nedyalkov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Arpit
Top achievements
Rank 1
answered on 11 Mar 2011, 11:03 AM
Hi, 
 
    Thanks for the reply, However I have to make some changes in the code to resolve the query. I cannot use contentpresenter as a Region because contentPresenter gives error( other words, It does not accept to be a region). So here is the changes I make to bring scrollbar - 
this may be helpful for others ... 

 

 

 

 

 

telerik:RadSplitContainer x:Name="MainPageContainer" telerik:DockingPanel.InitialSize="790,200"  >
                <telerik:RadPaneGroup x:Name="Group5" >
                    <telerik:RadPane x:Name="EverestMainRegion"  FontSize="10.667"   
                                     CanUserClose="False" CanUserPin="False" ContextMenuTemplate="{x:Null}" PaneHeaderVisibility="Collapsed">
                        <ScrollViewer HorizontalScrollBarVisibility="Auto">
                            <ContentControl regions:RegionManager.RegionName="MyMainRegion" />
                        </ScrollViewer>
                  </telerik:RadPane>
                </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
I have to make use of Contentcontrol

Regards,
Arpit Gupta

0
Miroslav Nedyalkov
Telerik team
answered on 14 Mar 2011, 01:55 PM
Hi Arpit,

 I'm glad to hear that you found a solution to the problem. If you have further questions, don't hesitate to ask!

Greetings,
Miroslav Nedyalkov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Docking
Asked by
Arpit
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Arpit
Top achievements
Rank 1
Share this question
or