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

GridView scrolls when tabbing out

1 Answer 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 22 Jan 2015, 08:54 PM
If RadGridView has vertical scroll bar and I tab out the scroll viewer scrolls on its own.

I have 1 gridView and 2 buttons, I select a row on gridview and then hit tab,  the focus is on the button but the grid automatically scrolls.

<Grid DataContext="{StaticResource MyViewModel}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <telerik:RadGridView Name="playersGrid" 
ItemsSource="{Binding Players}" 
AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" TabStopMode="Skip"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Number}" TabStopMode="Skip"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Position}" TabStopMode="Skip"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Country}" TabStopMode="Skip"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <telerik:RadButton Name="Button1"
  Content="ScrollIntoView" 
  Click="Button1_Click"
  Margin="5"
  HorizontalAlignment="Left"/>
            <telerik:RadButton Name="Button2"
  Content="BringIndexIntoView" 
  Click="Button2_Click"
  Margin="5"
  HorizontalAlignment="Left"/>
        </StackPanel>
    </Grid>

1 Answer, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 26 Jan 2015, 11:13 AM
Hello Vikas,

Thank you for reporting this issue. We reviewed the RadGridView control and we can confirm that the reported behavior is actually a bug. We logged it in our Feedback Portal, where you can track it's status. We also updated your Telerik account points as a thanks for your cooperation in reporting this issue. 

As a workaround you can define a custom Keyboard Command Provider and clear all the pending commands, when you press Tab.

Please give the suggested workaround a try and let us know how it goes.

Regards,
Boris
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Vikas
Top achievements
Rank 1
Answers by
Boris
Telerik team
Share this question
or