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

How to set height using javascript so that scrolling is enabled

1 Answer 195 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 24 Jul 2009, 05:48 PM
I have a RadTreeView inside of a RadPageView.  I use javascript to adjust the height of the RadPageView when the browser window is resized.  I want to also adjust the height of the RadTreeView to match the height of the RadPageView and also so that its contents are scrollable when overflow occurrs.  Is this possible? 

I know it's possible to enable scrolling for the RadPageView but this doesn't work well for my situation.  I need to enable scrolling on the tree view instead.

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 27 Jul 2009, 02:10 PM
Hello Justin,

You can set height of RadTreeView with client-side code like this:

$get("<%=RadTreeView1.ClientID %>").style.height = "500px"

and the following css style will enable scrolling:

.RadTreeView {  
    overflowauto !important;  

Regards,
Yana
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.
Tags
TreeView
Asked by
Justin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or