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

help with setting radgrid width and height

1 Answer 297 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 19 Dec 2012, 08:36 PM
Hi,

I added the telerik radgrid in an ascx control which is added to the MasterPage asp:ContentPlaceHolder in the following code:

<div id="main">

 

 

 

 

<asp:ContentPlaceHolder ID="MyContent" runat="server">

 

 

 

 

</asp:ContentPlaceHolder>

 

 

 

 

</div>

I was able to adjust the width of the main in my css file and the radgrid width fully occupied the ContentPlaceHolder but not the height.  I change the min-height of teh #main in the css file but I see the height of the container was increased but the grid height did not change.

My RadGrid is inside a asp:UpdatePanel.

what is the best method to adjust the radgrid in the ascx control to fully occupy the height.

Any help is appreciated.

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 24 Dec 2012, 10:35 AM
Hi John,

You need to set full height to all of the containers of the grid:
<asp:UpdatePanel ... style="height: 100%;">
and to the grid itself:
<telerik:RadGrid ... Height="100%">

I hope this will prove helpful.

Kind regards,
Eyup
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
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or