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

[Solved] Resize on client not working

1 Answer 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 07 Nov 2009, 09:11 PM
Below is my code.  I know that I cannot set the RadGrid to 100% height since
my table row does not have a value.  I have been unable to resize on the
client using .get_element.style.height = xxxx.  Does anyone know why this
would not be working or another way I can expand the grid to fill the height?
Currently, the grid is only about 30px tall.  Thank you in advance.

Joshua

<body> 
 <form id="form1" runat="server">  
  <rad:RadScriptManager ID="RadScriptManager1" runat="server" /> 
  <table cellpadding="0" cellspacing="0" border="0" style="table-layout:fixed;width:100%;height:100%;">  
   <tr style="height:60px;">  
    <td valign="top" style="position:relative;background-color:steelblue;">  
      
    </td> 
   </tr> 
   <tr style="height:100%;">  
    <td style="position:relative;">  
     <rad:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" Width="100%" style="border:0;">  
      <MasterTableView TableLayout="Fixed" /> 
      <ClientSettings> 
       <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
      </ClientSettings> 
     </rad:RadGrid> 
    </td> 
   </tr> 
  </table> 
 </form> 
</body> 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Nov 2009, 09:10 AM
Hi Josh,

Please refer to:

http://www.telerik.com/community/code-library/aspnet-ajax/grid/how-to-set-radgrid-height-client-side-with-javascript.aspx

Regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Josh
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or