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

Resize RadTreeView, based on .aspx Size

1 Answer 57 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 27 Oct 2011, 09:15 PM
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%;">
        <tr>
            <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">
             </telerik:RadTreeView>
  
            </td>
            
  
            <td>
                 
            </td>
  
            <td align="right" valign="top" width="100%">
                <iframe runat="server" id="myPDF" height="600" width="100%" visible="false" ></iframe>
            </td>
              
        </tr>     
          
        <tr>
            <td colspan="2" class="style1" height="100px">
  
                <asp:Label ID="Label1" runat="server" Text="" ForeColor="#0D141A"></asp:Label>
  
            </td>
        </tr>   
          
           <tr>
                    <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"/>
  
                    </td>
                </tr>       
         
    </table>

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar Terziev
Telerik team
answered on 01 Nov 2011, 12:41 PM
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
Tags
TreeView
Asked by
Robert
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or