RadPane not showing Scrollbar with Traditional approach and Prism ?

4 posts, 0 answers
  1. Arpit
    Arpit avatar
    10 posts
    Member since:
    Jun 2009

    Posted 04 Mar 2011 Link to this post

    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>
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 09 Mar 2011 Link to this post

    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!
  3. DevCraft banner
  4. Arpit
    Arpit avatar
    10 posts
    Member since:
    Jun 2009

    Posted 11 Mar 2011 Link to this post

    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

  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 14 Mar 2011 Link to this post

    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!
Back to Top