RadTreeView - Cannot display scrollbar

3 posts, 0 answers
  1. MarkBr
    MarkBr avatar
    14 posts
    Member since:
    Oct 2006

    Posted 05 Nov 2008 Link to this post

    Hi there,
    I'm populating a RadTreeView with RadTreeViewItems and if i have more information than can be displayed vertically on the RadTreeView the VerticalScrollBar is not being displayed. Shouldn't the ScrollBars display by default when the full information cannot be displayed?

    To compensate for the above, I'm trying to manually set the visibility of the ScrollBars using the following code but still without any success:

            void ItemContainerGenerator_StatusChanged(object sender, EventArgs e)
            {
                if (this.ItemContainerGenerator.Status == Telerik.Windows.Controls.Primitives.GeneratorStatus.ContainersGenerated)
                {
                    if (this.ScrollViewer != null)
                    {
                        this.ScrollViewer.IsEnabled = true;
                        this.ScrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Visible;
                        this.ScrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Visible;
                    }
                }  

            }

    Am i missing something? Can someone help.

    Regards,
    Mark.




  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 06 Nov 2008 Link to this post

    Hi MarkBr,

    Yes - you are right - the RadTreeView is displaying the vertical scrollbar when needed automatically. Can you send as the complete sample where this issue is exposed.


    Regards,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. MarkBr
    MarkBr avatar
    14 posts
    Member since:
    Oct 2006

    Posted 10 Nov 2008 Link to this post

    Hi Valentin,

    I now got the scrollbars to work. Can't really remember what i changed or what i did.
    Thanks anyway.

    Regards,
    Mark.
Back to Top