Make TreeView fill parent

2 posts, 0 answers
  1. JP
    JP avatar
    122 posts
    Member since:
    Aug 2011

    Posted 07 Mar 2012 Link to this post


    I have a page with some controls and the last control which is below all other controls is a TreeList.
    This TreeList can contain more data than it could fit on the screen, so it automatically gets bigger than the browser window and the
    browser displays scroll bars. This could be ok, but the LoadingPanel image could be outside the viewport if there are too many rows.

    So I want to prevent that the TreeList grows bigger than the page. I know I can set AllowScrolling to true, but this seems to work only for fixed heights, not relative ones.
    Could you please tell me how I can prevent the TreeList from growing larger than the viewport?

  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 09 Mar 2012 Link to this post


    I am not sure what exactly the requirement you have is - you do not want the treelist to have a fixed height but you want it to not get bigger than a given size? An option you have is to enable scrolling, then dynamically calculate the available space in the container and set it as height of the treelist control.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top