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

RadGridView infinity height

3 Answers 481 Views
GridView
This is a migrated thread and some comments may be shown as answers.
eliraz
Top achievements
Rank 1
eliraz asked on 04 Jun 2012, 02:34 PM
Hello,

I've added RadGridView into my WPF user control that is inside a winform application.
The RadGridView is inside a grid that the column and row definitions for his cell are *.

If I add rows, the RadGridView just gets higher and higher until there are no more rows to fill.


Is there an easy way to define that the grid wont get larger according to his context?

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 04 Jun 2012, 03:32 PM
Hi,

 The GridView will get bigger until it reaches the space available for it (the space you have specified) or until it reaches its fixed Height.

You could set the MaxHeight/Height property of the GridView.

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Member
Top achievements
Rank 1
answered on 22 Apr 2015, 03:30 PM

I have same problem, in WPF application , I have to show the Window that contains WPF user controls which contains RadGridView.

I have set the MaxHeight, its works fine, but when user increase the window height the RadGridView height is not getting increased.

0
Dimitrina
Telerik team
answered on 23 Apr 2015, 07:57 AM
Hi Sugumar,

In that case, I would suggest you placing RadGridView under Grid with RowDefinition.Height="*"
<Grid.RowDefinitions>
   <RowDefinition Height="*" />
       <RowDefinition Height="50" />
</Grid.RowDefinitions>
<Grid>
...
<telerik:RadGridView Grid.Row="0" .../>
...
</Grid>

Regards,
Dimitrina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GridView
Asked by
eliraz
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Member
Top achievements
Rank 1
Share this question
or