Resize RadTreeView, based on .aspx Size

2 posts, 1 answers
  1. Robert
    Robert  avatar
    68 posts
    Member since:
    Feb 2009

    Posted 27 Oct 2011 Link to this post

    I'm working with the RadTreeView, within an HTML table;

    An objective for this .aspx web page is to have the RadTreeView resize, according to the resizing of a .aspx web page;

    For example, if the width or height of the .aspx web page is resized to a point where the .aspx web page has less width or less height than the RadTreeView itself - the RadTreeView will resize accordingly with scroll bars;

    Hopefully the description provides a clear understanding;  Best regards - Rob

    <table style="width: 100%;">
                <td align="left" valign="top">
                 <telerik:RadTreeView ID="RadTreeView1" runat="server" 
                        OnNodeExpand="RadTreeView1_NodeExpand" ForeColor="Black" 
                    Font-Names="Microsoft Sans Serif" onnodeclick="RadTreeView1_NodeClick" 
                        Height="600px" Width="400px" Font-Size="Medium">
                <td align="right" valign="top" width="100%">
                    <iframe runat="server" id="myPDF" height="600" width="100%" visible="false" ></iframe>
                <td colspan="2" class="style1" height="100px">
                    <asp:Label ID="Label1" runat="server" Text="" ForeColor="#0D141A"></asp:Label>
                        <td align="center" colspan="3" valign="bottom">
                           <asp:Image ID="FALogo" runat="server" ImageUrl="~/Images/FA_Logo_600x289.png"/>
                             <asp:Image ID="imgContactUs" runat="server" ImageUrl="~/Images/ContactUs.png" visible="false"/>
  2. Answer
    Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 01 Nov 2011 Link to this post

    Hi Robert ,

    The RadTreeView will automatically add scroll bars when its container's height or width is not enough to show all of its nodes. So in you case you should resize your table and the RadTreeView will show its scroll bars automatically.

    Kind regards,
    Dimitar Terziev
    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