scrolling issue with radgridview

3 posts, 1 answers
  1. Chris
    Chris avatar
    14 posts
    Member since:
    Sep 2014

    Posted 29 Jun 2015 Link to this post



    I have a simple radgridview in a window. The auto scrolling on the radgridview seems to allow scrolling way past the last record. There are 52 records but no matter what height I give the gridview the scrolling always allows to scroll down past the last record with lots of white space. I have attached a screenshot. Below is my xaml:

     <Window x:Class="WishAdminWPF.RoomingListWindowView"
                 d:DesignHeight="400" d:DesignWidth="400"
                 WindowStartupLocation="CenterScreen" Loaded="WindowBase_Loaded">
            <BooleanToVisibilityConverter x:Key="BoolToVisConverter" />
        <Grid Margin="5">
                <ColumnDefinition Width="auto"/>
                <RowDefinition Height="200"/>
                <RowDefinition Height="*"/>
                <telerik:RadGridView Grid.Row="0" Grid.Column="0" Name="grdViewRoominglst" Margin="5" Width="380" Height="200"  VerticalAlignment="Top" 
                                     ItemsSource="{Binding RoomingList}"
                        <telerik:GridViewDataColumn Header="Room Type"  Width="auto" DataMemberBinding="{Binding RoomType}" IsReadOnly="True"/>
                        <telerik:GridViewDataColumn Header="Available" Width="auto" DataMemberBinding="{Binding RoomsAvail}" IsReadOnly="True" 
                                                    IsVisible="{Binding ShowAvailableRooms, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
                        <telerik:GridViewDataColumn Header="Number" Width="auto" DataMemberBinding="{Binding RoomsUsed}"/>
            <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5">
                <Button  Height="25" Width="60" Margin="5,5,0,5" Name="btnOk" IsDefault="True" Click="btnOk_Click">OK</Button>
                <Button  Height="25" Width="60" Margin="5,5,0,5" Name="btnCancel" Click="btnCancel_Click">Cancel</Button>

  2. Answer
    Dimitrina avatar
    3769 posts

    Posted 30 Jun 2015 Link to this post


    Would you please try configuring RadGridView with GroupRenderMode="Flat"? Does this make any difference?

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Chris
    Chris avatar
    14 posts
    Member since:
    Sep 2014

    Posted 01 Jul 2015 in reply to Dimitrina Link to this post

    GroupRenderMode="Flat" fixed my problem. Thank you!
Back to Top