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

RadGridView: Huge Space between last row and footer

1 Answer 364 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gautam
Top achievements
Rank 1
Gautam asked on 23 Feb 2012, 11:57 PM
I believe this is quite a common issue.

When I include the Aggregate function for a column in the RadGridView, there is a lot of space between the last row and the footer.  I am not setting any height to the grid.

<telerik:RadGridView AutoExpandGroups="True"
                                  AutoGenerateColumns="False"
                             CanUserFreezeColumns="False"
                             ShowGroupPanel="False"
                             Grid.Row="1"
                             ItemsSource="{Binding Path=Items}"
                               IsBusy="{Binding Path=IsLoading}"
                             ShowColumnFooters="True">

Any clue to how this can be fixed?  I have attached a screen shot of the Grid. 

1 Answer, 1 is accepted

Sort by
0
Gautam
Top achievements
Rank 1
answered on 24 Feb 2012, 07:13 PM
I was able to resolve this.  

This behavior is based on the grid's height.  The footer will always show at the bottom of the grid, and if the number of rows in the grid are less compared to the grid's height, then the blank space makes up the difference between the last row and the footer. 

I set the grid's height to auto and this made the blank space go away. (This reduced the height of the grid)

Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
commented on 28 Apr 2022, 06:28 AM

Hi Gautam,
I know that the question is old, but I faced this exact problem today. 

Your solution works but using auto you will lose the automatic vertical scroll bar when the rows was many and they oversize the window height. We can achieve the same result using VerticalAlignment="Top" and leave Grid.Height = "*".

dj
Top achievements
Rank 1
commented on 09 Jan 2023, 09:17 PM

Hi Deltaohm,

I Came across this same problem and this solution today. Thank you for suggesting the VerticalAlignment="Top" fix. This solved the issue for me as well.

Tags
GridView
Asked by
Gautam
Top achievements
Rank 1
Answers by
Gautam
Top achievements
Rank 1
Share this question
or