How to set height using javascript so that scrolling is enabled

2 posts, 1 answers
  1. Justin
    Justin avatar
    8 posts
    Member since:
    May 2008

    Posted 24 Jul 2009 Link to this post

    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.

  2. Answer
    Yana avatar
    5043 posts

    Posted 27 Jul 2009 Link to this post

    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;  

    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.
Back to Top