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

[Solved] Vertical Scrolling in Treeview

2 Answers 624 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ben
Top achievements
Rank 1
Ben asked on 20 Dec 2011, 10:52 PM
Is it possible to have the Treeview show a vertical scrollbar?  From something I read in one of the other threads, I assumed that the scroll bar would automatically show if the treeview's contents went beyond the set height (I tried setting a fixed height via the HtmlAttributes method as well as using CSS to set the height on the parent div).  Am I missing something?

Thanks,
Ben

2 Answers, 1 is accepted

Sort by
0
BRUNO
Top achievements
Rank 1
answered on 23 Apr 2012, 12:50 PM
Please, does anyone have a sample project demonstrating the treeview with horizontal and vertical scrollbar?

Thanks.
0
BRUNO
Top achievements
Rank 1
answered on 23 Apr 2012, 01:47 PM
I managed to solve the problem using the following definition in treeview

  @Html.Telerik().TreeView("TreeView1").HtmlAttributes(new { style =  "height: 400px; overflow: scroll; position: relative;" })

thanks
Tags
TreeView
Asked by
Ben
Top achievements
Rank 1
Answers by
BRUNO
Top achievements
Rank 1
Share this question
or