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

Make TreeView fill parent

1 Answer 55 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 07 Mar 2012, 10:58 AM
Hi,

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?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 09 Mar 2012, 02:01 PM
Hello,

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.

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