RadGridView infinity height

4 posts, 0 answers
  1. eliraz
    eliraz avatar
    20 posts
    Member since:
    Nov 2010

    Posted 04 Jun 2012 Link to this post

    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?
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 04 Jun 2012 Link to this post

    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 >>

  3. Member
    Member avatar
    2 posts
    Member since:
    Oct 2013

    Posted 22 Apr 2015 in reply to Dimitrina Link to this post

    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.

  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 23 Apr 2015 Link to this post

    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.

     
Back to Top