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

Strange Rectangle in the middle of a grid

3 Answers 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
dani
Top achievements
Rank 1
dani asked on 18 Aug 2014, 05:19 AM
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 ? 

3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 18 Aug 2014, 06:24 AM
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.
 
0
dani
Top achievements
Rank 1
answered on 18 Aug 2014, 09:38 AM
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 ?


0
Accepted
Ivan Ivanov
Telerik team
answered on 18 Aug 2014, 10:51 AM
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.
 
Tags
GridView
Asked by
dani
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
dani
Top achievements
Rank 1
Share this question
or