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

RadTreeView - Cannot display scrollbar

2 Answers 110 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
MarkBr
Top achievements
Rank 2
MarkBr asked on 05 Nov 2008, 12:11 PM
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 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 06 Nov 2008, 11:22 PM
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.
0
MarkBr
Top achievements
Rank 2
answered on 10 Nov 2008, 07:22 AM
Hi Valentin,

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

Regards,
Mark.
Tags
TreeView
Asked by
MarkBr
Top achievements
Rank 2
Answers by
Valentin.Stoychev
Telerik team
MarkBr
Top achievements
Rank 2
Share this question
or