GridView scrolls when tabbing out

2 posts, 0 answers
  1. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 22 Jan 2015 Link to this post

    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>
  2. Boris
    Admin
    Boris avatar
    276 posts

    Posted 26 Jan 2015 Link to this post

    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.

     
Back to Top