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

Scrolling Focus Problem

3 Answers 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 13 Feb 2012, 11:22 PM
I have a RadGridView with a RadDataForm inside the RowDetails. When I expand a row and then scroll my mouse wheel through the grid results, the scrolling halts when my mouse array is over the RadDataForm....as if the DataForm is grabbing the scroll focus (but there are no scrollbars on the DataForm).

How can I prevent this? Thanks.

Here is my main xaml code:

<telerik:RadGridView Grid.Row="1" IsReadOnly="True" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" IsFilteringAllowed="False" ItemsSource="{Binding Results}" AutoGenerateColumns="False">
            <telerik:RadGridView.Style>
            </telerik:RadGridView.Style>
            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn />
                <telerik:GridViewSelectColumn IsVisible="{Binding DataContext.IsMultiSelect, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:PatientSearchView}}}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Id}" Width="*" />
................
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                    <telerik:RadTabControl Height="400" HorizontalAlignment="Stretch" Margin="8,8,20,8" VerticalAlignment="Center">                
                        <telerik:RadTabItem Header="Details" HorizontalContentAlignment="Stretch" HorizontalAlignment="Left">
                            <local:DetailsView DataContext="{Binding Details}" />
                        </telerik:RadTabItem>
...............
                    </telerik:RadTabControl>
 
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>
        </telerik:RadGridView>

And then this is my DetailsView

<s:View ....>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Border BorderBrush="Black" BorderThickness=".5" Grid.Row="0" Height="90" Width="90" Margin="10,0,0,0" HorizontalAlignment="Left" >
            <Image Source="{Binding Details.Photo}" />
        </Border>
        <telerik:RadDataForm AutoGenerateFields="True" CurrentItem="{Binding Details}" CommandButtonsVisibility="Commit,Cancel,Edit" Grid.Row="1" ScrollViewer.CanContentScroll="False">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="EditEnded">
                    <i:InvokeCommandAction Command="{Binding Save}" />
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </telerik:RadDataForm>
    </Grid>
</s:View>

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Feb 2012, 10:49 AM
Hello,

 Thank you for the detailed explanation of the problem that you have faced. I have checked the described behaviour.

Indeed you are right, but this is the expected behaviour. We have designed it that way as this is how the WPF DataGrid behaves. When the mouse points to the DataForm, scrolling will not be performed.

You will be able to scroll when you point the mouse outside of the DataForm.

Greetings,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Jeff
Top achievements
Rank 1
answered on 14 Feb 2012, 04:28 PM
Ok, thanks. How can I resolve this? It makes the grid unusable.
0
Dimitrina
Telerik team
answered on 15 Feb 2012, 12:40 PM
Hi,

 Indeed, you are right. Unfortunately for the time being this would not be possible.

You could point the mouse outside of the DataForm and you will scroll fine.

Kind regards,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Jeff
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or