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

Problems with height property of grid ignored

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hans-Jürgen
Top achievements
Rank 1
Hans-Jürgen asked on 13 Oct 2014, 11:45 PM
HI,

I have (In a rather compex asp.net page)  a grid inside an asp.net Panel .
The hierachy look like that:

...
<telerik:RadMultiPage  runat="server" ID="xxx" SelectedIndex="0" Height="100%" Width="100%">
<telerik:RadPageView  ID="xxx" runat="server" Height="100%" >
<telerik:RadAjaxPanel  ID="xxxl" runat="server"  Height="100%" Width="100%" LoadingPanelID="xxx">
<telerik:RadGrid  ID="xxx" runat="server"   ../



What I want is that the grid should have a FIXED height of say 500px. If there are more rows in the grid than one can Show in the 500px grid , vertical scrollbars should be displayed.

Of course the first I tried was to set the HEIGHT of the grid to height="500". Unfortunately this property has (in my case) no effect of the height of the grid.

What I currently get is that the height of the grid is determined by the number of rows that gets bound to the grid. If there are e.g. many rows bound to the grid the height of the grid is very very heigh, regardless of the height I set via the height property.

What am I doig wrong ? How can I force the grid to have a FIXED height of say 500 px asnd force the grid to Display vertical scrollbars if necessary ??

Hope one can help.

Best regards
Hans-Juergen 



1 Answer, 1 is accepted

Sort by
0
Galin
Telerik team
answered on 16 Oct 2014, 02:52 PM
Hi Hans,

Based on the provided information it is hard to determine what is casing the issue. However I suppose the scrolling is disabled and the contain overflows. In this case I suggest you to enable it:
<ClientSettings>
    <Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
</ClientSettings>

I hope this helps.

Regards,
Galin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Hans-Jürgen
Top achievements
Rank 1
Answers by
Galin
Telerik team
Share this question
or