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

Vertical Scrollbar fit the grid

5 Answers 153 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tao Jiang
Top achievements
Rank 1
Tao Jiang asked on 16 Oct 2009, 02:46 PM
Hi,

I am using this treeview in the way same as the demo sample of Organization, Department, Person. How can I move the vertical scrollbar to fit the area.

Thanks,

Tao

5 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 20 Oct 2009, 08:00 AM
Hello Tao Jiang,

Could you please describe in more detail what you are trying to achieve?

Do you want to remove the ScrollBar?

If this is the case, you can use the ScrollViewer.VerticalScrollBarVisibility attached property and set it to "Disabled" on the RadTreeView.

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.
0
Tao Jiang
Top achievements
Rank 1
answered on 20 Oct 2009, 01:49 PM
I would like to move the vertical scrollbar to the right side to fit the screen area-the grid.

Thanks,
0
Bobi
Telerik team
answered on 22 Oct 2009, 01:31 PM
Hello Tao Jiang,

By default the treeview ScrollBar is placed on right . And if you expand enough items it appear and fit the area of the treeview.So the scrollbar gets the height of the treeview. Can you please explain what you are trying to acomplish:
1.Remove the scrollbar?
2.Place it somewhere different than right?
3.Set some height/width of the scrollbar/treeview?
4.Do you want to place the treeview in a new ScrollView-er and disable the build in functionality ?


Sincerely yours,
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.
0
Tao Jiang
Top achievements
Rank 1
answered on 22 Oct 2009, 03:40 PM
Hi, Boryana,

The treeview scrollBar is on the right with enough items. However, it is in the middle of the area given for the treeview. I want it to move to the most right edge of the area to fit the area. So the desired result is that there is no empty space between treeview vertical scrollbar and the edge of the form.

If you play with the demo sample of trial application from Telerik, the one of organization, department, and preson. The scrollbar does not expand to the right. It goes to the right when the tree children increases, but it does not automatically go to the right and fit the area. 

Thanks,
 
0
Bobi
Telerik team
answered on 27 Oct 2009, 07:17 AM
Hello Tao Jiang,

Please find attached a sample project that shows how to set the Vertical ScrollBar of Radtreeview.
All you need to do is the follwoing:

<telerik:RadTreeView x:Name="tree" ScrollViewer.VerticalScrollBarVisibility="Visible"/>

In the sample project you can find two treeviews with vertical ScrollBars in different panels.
I hope that this will help you. Please let us know if you need some more help or have any other questions.

Sincerely yours,
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.
Tags
TreeView
Asked by
Tao Jiang
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Tao Jiang
Top achievements
Rank 1
Bobi
Telerik team
Share this question
or