Strange Rectangle in the middle of a grid

4 posts, 1 answers
  1. dani
    dani avatar
    48 posts
    Member since:
    Jan 2011

    Posted 18 Aug 2014 Link to this post

    I've a RadGridView in few of my property pages.
    The grid works fine, but I have a strange "rectangle" in the middle of the grid that I have no idea where it came from:
    It looks like a scroll bar position marker, but it doesn't respond to anything, and it just "floats" there.
    If I remove the grid, it is gone as well. 

    (image attached)

    Here is the grid code (binding names and header were replaced...)

    <telerik:RadGridView Name="gdScoreGrid" DockPanel.Dock="Bottom" AutoGenerateColumns="False" IsScrolling="True" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Auto" 
                               IsReadOnly="True"  ClipboardCopyMode ="All" SelectionMode="Extended"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ShowColumnFooters="True">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding a}" Header="a" IsEnabled="False">
                        <telerik:GridViewDataColumn.AggregateFunctions>
                            <telerik:CountFunction Caption="aaa:"></telerik:CountFunction>
                        </telerik:GridViewDataColumn.AggregateFunctions>
                    </telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding aa}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ab}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ac}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ad}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ae}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding af}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ag}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ah}" Header="a a" IsEnabled="False"/>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding aai}" Header="a a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding aj}" Header="a a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ak}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding al}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding am}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding an}" Header="a a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ao}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ap}" Header="a a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding aq}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ar}" Header="a?" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding as}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding at}" Header="a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding au}" Header="?a" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding av}" DataFormatString="{} {0:dd/MM/yyyy}" Header="ddd" IsEnabled="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ax}" Header="a a" IsEnabled="False" />


                </telerik:RadGridView.Columns>

            </telerik:RadGridView>

    Any Ideas what might cause this to appear ? 

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1218 posts

    Posted 18 Aug 2014 Link to this post

    Hello,

    This is the ScrollPositionIndicator element of RadGridView. Is is used to display the current scroll position when RadGridView uses deferred scrolling. It is constantly visible because you have set the IsScrolling property in the control's definition. Generally, it should be set only when a fast scrolling operation is going to happen (it also has some internal logic wired to it). 

    Regards,
    Ivan Ivanov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. dani
    dani avatar
    48 posts
    Member since:
    Jan 2011

    Posted 18 Aug 2014 in reply to Ivan Ivanov Link to this post

    What Does it indicates ? I do scrolling with this grid, both horizontal, and vertical (it shows thousand of lines) but it is not effect  this rectangle (there is a scroll in the side and in the bottom....)
    Should I just turn IsScrolling=false
    or will it be a problem with performance ?


  4. Answer
    Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1218 posts

    Posted 18 Aug 2014 Link to this post

    Hello,

    Please, let me clarify. The IsScrolling property does not enable/disable scrolling in RadGridView. It only indicates whether a deferred scrolling operation is currently executed. Its default value is "false" and It is not expected to be set like this. You can leave it unset (false) and everything should be working fine with scrolling.

    Regards,
    Ivan Ivanov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top