How do I enable scrolling in RadTreeView?

16 posts, 0 answers
  1. Ken
    Ken avatar
    8 posts
    Member since:
    Jun 2009

    Posted 15 Jun 2009 Link to this post

    I have no vertical scrolling my my tree view.  If I click on a node with many children, the control expands below the bottom of the browser and provides no means of scrolling to out-of-view items.  There is no scrollbar available in the tree view, and the browser scrollbar, though visible, does not detect the change in the treeview height and is of no help (not that I want that solution to this problem....)

    I've tried setting ScrollViewer.VerticalScrollBarVisibility="Auto" in the xaml, but I get a runtime exception "Unknown attribute ScrollViewer.VerticalScrollBarVisibility on element RadTreeView".

    I may still be naive regarding automatic layout in Silverlight.  I want my controls (in general) to expand to the height of the browser.  The parent UserControl views of this tree (and there are several) general have their Height attribute set to "Auto".
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 16 Jun 2009 Link to this post

    Hello Ken,

    Check out this forum thread:
    http://www.telerik.com/community/forums/silverlight/treeview/treeview-scrollviewer.aspx

    Update:
    The link above does not work, if you have questions about scrolling in the TreeView, post them here.

    All the best,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Celeste
    Celeste avatar
    34 posts
    Member since:
    May 2009

    Posted 18 Jun 2009 Link to this post

    I`ve checked out that forum.....but how can I enable vertical scrollbar using the code behind, because I`ve created treeview programatically.

    I have my treeview inside a grid.
  5. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 19 Jun 2009 Link to this post

    Hello Celeste,

    You can enable the vertical scrollbar  of RadTreeView in code behind in this way:

         treeView.SetValue(System.Windows.Controls.ScrollViewer.VerticalScrollBarVisibilityProperty, ScrollBarVisibility.Visible);

    I hope that this answers your question.

    Sincerely yours,
    Boryana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Kabs Hussain
    Kabs Hussain avatar
    5 posts
    Member since:
    Nov 2009

    Posted 26 Nov 2009 Link to this post

    Hi,
        I have a Treeview with Horizontal & Vertical Scrolling enabled.
    However, after populating the Tree with Data,  I cann't see the Last node(Bottom node) of the Tree as it comes behind the the Horizontal scrollbar.
    I have tried all possibilities but I cann't make it.

    Pls help.

    Regards
    Kabs

  7. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 26 Nov 2009 Link to this post

    Hi Kabs Hussain,

    Thank you for the feedback. We are aware of this issue.
    It is already fixed and the change will be reflected in the this week internal build which is tomorrow.

    Regards,
    Boryana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. Manny
    Manny avatar
    13 posts
    Member since:
    Jan 2009

    Posted 08 Dec 2009 Link to this post

    That forum does not work; server error when navigating to page
  9. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 13 Dec 2009 Link to this post

    Hi Manny,

    I checked the forum link and indeed, it does not work anymore. The thread may have been converted to a support ticket. 

    Are you seeing any issues with the scrolling in the TreeView?

    Normally the vertical ScrollBar in the TreeView may not appear if it is placed in panels that do not constrain its size (for example if any of its parents is a  vertical StackPanel).

    All the best,

    Miroslav
    the Telerik team

     


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  10. TWT
    TWT avatar
    9 posts
    Member since:
    Aug 2006

    Posted 04 Jun 2010 Link to this post

    Telerik,

    Is this resolved with the latest binaries?

    thanks
  11. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 07 Jun 2010 Link to this post

    Hi TWT,

    We are currently not aware of any problems regarding the scrolling in the RadTreeView. Please let us know if you experience any.

    Greetings,
    Valentin.Stoychev
    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.
  12. TWT
    TWT avatar
    9 posts
    Member since:
    Aug 2006

    Posted 10 Jun 2010 Link to this post

    Maybe the issue is I'm not able to get an acurate height on the RadPanel with each is expanded with I have multiple expand is set to true.  I need to be able at run time set the size of the contents in the RadPanel and it seems not to work.  What is the best way to obtain this information?  thanks
  13. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 15 Jun 2010 Link to this post

    Hi TWT,

    Are you talking about the RadPanelBar control? I assume yes, if not please let us know.

    In order to achieve what you want you have to set the VerticalAlignment to "Stretch" of the RadPanelBar. If this is not working - please open a new support ticket and attach a sample project where we can advise you better.

    All the best,
    Valentin.Stoychev
    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.
  14. Rainer
    Rainer avatar
    5 posts
    Member since:
    May 2011

    Posted 03 Jun 2011 Link to this post

    We have a Main page containing

    <telerik:RadSplitContainer x:Name="radSplitContainerLeft" VerticalAlignment="Stretch" Orientation="Horizontal" InitialPosition="DockedLeft" telerik:DockingPanel.InitialSize="170,150" MaxWidth="600">
                             <telerik:RadPaneGroup IsDefaultItemSelected="True" SelectedIndex="0">
                                <telerik:RadPane Header="Entities">
                                        <StackPanel Orientation="Vertical" VerticalAlignment="Stretch">
                                        <BasicControls:EntitySelector  x:Name="entitySelector1" VerticalAlignment="Top" />
                                        <BasicControls:HierarchyTreeView VerticalAlignment="Stretch"/>
                                            
                                    </StackPanel>
                                </telerik:RadPane>
                                <telerik:RadPane Header="Settings">
                                        <StackPanel Orientation="Vertical" Background="#FFF4F6FD" Margin="4">
                                            <BasicControls:ModelSelector x:Name="modelSelector1" VerticalAlignment="Top" />
    <BasicControls:UserSettings x:Name="userSettings1" VerticalAlignment="Top" />
                                        </StackPanel>
                                    </telerik:RadPane>
                            </telerik:RadPaneGroup>                           
                        </telerik:RadSplitContainer>


    Our HierarchyTreeView includes the following:

    <Grid x:Name="LayoutRoot" VerticalAlignment="Stretch"
              d:DataContext="{StaticResource ViewModel}">
            <telerik:RadBusyIndicator IsBusy="{Binding IsBusy}" BusyContent="{Binding BusyContent}" Visibility="Visible">
                <Grid>
                    <telerik:RadComboBox Name="radComboBox1" Width="Auto" VerticalAlignment="Top"
                                     ItemTemplate="{StaticResource ComboBoxItemTemplate}"
                                     CanAutocompleteSelectItems="True" 
                                     IsFilteringEnabled="True" 
                                     EmptySelectionBoxTemplate="{StaticResource EmptyTemplate}" 
                                     SelectionBoxTemplate="{StaticResource ComboBoxItemTemplate}"                                 
                                     telerik:TextSearch.TextPath="Name"                                                                      
                                     SelectedItem="{Binding SelectedHierarchy, Mode=TwoWay}"
                                     ItemsSource="{Binding DerivedHierarchies}">
                    </telerik:RadComboBox>               

                    <telerik:RadTreeView Width="Auto"  Height="Auto"  VerticalAlignment="Top"                                        
                                         ItemTemplate="{StaticResource ItemTemplateParentChild}"
                                         ItemsSource="{Binding Path=HierarchyMembersAll,Mode=TwoWay,Converter={StaticResource ParentChildConverter}}"
                                         ItemsOptionListType="Default"
                                         IsOptionElementsEnabled="False"
                                         x:Name="TreeView2"
                                         SelectionMode="Multiple" IsLineEnabled="True"
                                         SelectedItem="{Binding SelectedHierarchyMember, Mode=TwoWay}"
                                         IsRootLinesEnabled="True" IsTriStateMode="True"
                                         Margin="0,20, 0, 0"
                                         />               
                    
                </Grid>
            </telerik:RadBusyIndicator>
        </Grid>


    I've added The VerticalAlignment="Stretch" to every possible container, but still I can't scroll vertically in TreeView2. Only horizontally.
    We must have the controls inside a StackPanel, since their height may vary.
  15. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 08 Jun 2011 Link to this post

    Hello Rainer,

    The StackPanel measures itself with infinity. On the other hand, the RadTreeView has to be limited somehow in order to show its vertical ScrollViewer. You could try setting the MaxHeight property of the RadTreeView or placing it in Grid`s RowDefinition with explicit height set. You can also send us a runnable sample that we will investigate faster and provide you with a better suited advice. Thank you for your cooperation in advance.

    Kind regards,
    Petar Mladenov
    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
  16. Greivin
    Greivin avatar
    2 posts
    Member since:
    Oct 2011

    Posted 27 Oct 2011 Link to this post

    Hi, I'm using a RadTreeView  in asp.net ajax and I need enable the scrollBar, I have checked the options in this post but it doesn't work for me.

    Thanks
  17. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 01 Nov 2011 Link to this post

    Hello Greivin,

     Do you actually mean RadTreeView for ASP.Net Ajax ? If so, why don't you post a ticket in the ASP forum?
    If it is the Silverlight RadTreeView, could you please elaborate more on your scenario, any sample code will be highly appreciated? This way we would be better able to assist you. Thank you in advance.

    All the best,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner