8 Answers, 1 is accepted
I tried reproducing the issue but to no avail. Selecting cells and dragging the selection past down the bottom boundaries of the spreadsheet does automatically scroll downward. Attached is a video I recorded during my test. Could you attach a sample runnable project reproducing the issue? As this is a forum thread, you could either attach it to a sire for files sharing or submit a support ticket.
Regards,
Peshito
Progress Telerik
I'll see if I can try to put together an example at some point, but I'm working towards a pretty hard deadline in a few weeks right now and this is something that can wait until after. Some additional information I can add right now is that I have a RadRibbonWindow with a ContentControl in a Grid, and I am assigning a new spreadsheet to the contentcontrol.content at runtime in the code-behind, in case that makes any difference.
<
Grid
Grid.Row
=
"1"
>
<!--Holds report content-->
<
ContentControl
Margin
=
"8"
x:Name
=
"ReportContent"
>
<
ContentControl.Effect
>
<
DropShadowEffect
Direction
=
"320"
ShadowDepth
=
"4"
BlurRadius
=
"12"
Opacity
=
"0.75"
/>
</
ContentControl.Effect
>
</
ContentControl
>
.....
</
Grid
>
In the code behind, there is a lot of logic to determine what gets set as the content, but in this code path it is effectively:
Me.ReportContent.Content = New Controls.RadSpreadsheet
Thanks for the heads up. The additional information was helpful in reproducing the issue. It is caused by the fact that RadSpreadsheet uses UI Virtualization and processes only information that is loaded in the viewable area. This means that you should not place it in controls/panels which will measure it with infinity. Such controls can be ScrollViewer, StackPanel or Grid with Row.Height and Column.Height set to Auto.
Please let me know if any other questions arise.
Regards,
Peshito
Progress Telerik
Even if I remove everything from around the content control which contains the spreadsheet and hardcode an explicit height and width, it still doesn't work correctly. I also tried removing the content control entirely and just set the content into the window as Me.Content = New Controls.RadSpreadsheet.
<
telerik:RadRibbonWindow
x:Class
=
"Reporting.ReportViewer"
x:Name
=
"ReportViewer"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
Icon
=
"/Ace;component/Common/Images/32x32/Report.png"
Height
=
"600"
Width
=
"800"
MinHeight
=
"300"
MinWidth
=
"315"
WindowStartupLocation
=
"CenterOwner"
Title
=
"Report"
Background
=
"{DynamicResource Docking_Background}"
>
<!--Holds report content-->
<
ContentControl
Margin
=
"8"
x:Name
=
"ReportContent"
Height
=
"400"
Width
=
"400"
>
<
ContentControl.Effect
>
<
DropShadowEffect
Direction
=
"320"
ShadowDepth
=
"4"
BlurRadius
=
"12"
Opacity
=
"0.75"
/>
</
ContentControl.Effect
>
</
ContentControl
>
</
telerik:RadRibbonWindow
>
Thank you for getting back to us. It is difficult to find out what else might be causing the issue by referring to the sample code. Could you please attach a sample runnable app reproducing it so I could debug it locally and provide you more appropriate answer?
Looking forward to your reply.
Regards,
Peshito
Progress Telerik
Some further information. It does scroll if I start the selection from a regular cell but not if I start from a row header. See attached video.
I was never able to see your swf format video, so I don't know if that is what you were doing. But I think it is pretty clear that it is not "in controls/panels which will measure it with infinity".
Hello Steve,
I was able to reproduce this unwanted behavior. It appears that this is a missing feature and I created a feature request on your behalf - Scroll document when a row header is selected and being dragged. I have also updated your Telerik points as gratitude to this finding.
Please subscribe to the item in order to get notified of any status changes over this request.
Regards,
Peshito
Progress Telerik