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

Rad grid hieght problem.

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
VetrivelMP
Top achievements
Rank 1
VetrivelMP asked on 30 Aug 2011, 07:22 PM

 

 

hi all,

<
telerik:RadGrid ID="grid1" runat="server" GridLines="Both" HeaderStyle-Width="100px"

 

 

 

Width="500px" OnItemDataBound="grid1_ItemDataBound" CssClass="rgTwoLines"

 

 

 

Skin="Outlook" ItemStyle-HorizontalAlign="Left" AlternatingItemStyle-HorizontalAlign="Left"

 

 

 

MasterTableView-TableLayout="Fixed" Style="overflow: auto" >

 

 

 

<ClientSettings>

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="1">

 

 

 

</Scrolling>

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

Above is my code. i am using this to freeze column and also for static header. one of the problem is that, even though grid has one row the height has still same and shows with unneccessary white space in height.
But if many rows then it is working fine as what i expected. Please see image for reference.
Any solution for this?

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 30 Aug 2011, 07:52 PM
Hello,

Please set below style.

<style>
       
       .RadGrid .rgDataDiv
       {
           height : 100% !important;
           max-height : 300px !important;
       }
   </style>

let me know if any concern.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
VetrivelMP
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or