[Help]RadGridView don't scroll on tab

7 posts, 0 answers
  1. Kreshnik
    Kreshnik avatar
    1 posts
    Member since:
    Feb 2011

    Posted 11 Feb 2011 Link to this post

    Hello everybody i have a bad problem with the RadGridView it doesn't scroll on tab click neigher the vertical or horizontal scrollbar does scroll.
    Is there anyone who could provide me some help to this issue.
    Thanks in advanced for any help.
  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 11 Feb 2011 Link to this post

    Hello Kreshnik,

    Thank you for contacting us. I am not sure that I fully understand the issue. Please could you provide an example and describe in detail how to reproduce the issue. Thank you in advance.

    I am looking forward to your reply.
     
    Greetings,
    Jack
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. amit
    amit avatar
    7 posts
    Member since:
    Sep 2016

    Posted 12 Oct in reply to Jack Link to this post

    i have radgridview and 5 columns in it and in one column i have used data template. Inside data template, window button is placed. 

    Now, my query is that i have disabled tabbing on grid and i want tabbing to be work on button with scroll. if rows are more than one page then scroll should happen according to tab key navigation.

  5. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    711 posts

    Posted 12 Oct Link to this post

    Hi Amit,

    Thank you for writing.

    I am having trouble in understanding your scenario. In case you are trying the modify how the Tab key is processed by the data rows, you can create a custom GridDataRowBehavior​: Row Behavior:
    BaseGridBehavior gridBehavior = radGridView1.GridBehavior as BaseGridBehavior;
    gridBehavior.UnregisterBehavior(typeof(GridViewDataRowInfo));
    gridBehavior.RegisterBehavior(typeof(GridViewDataRowInfo), new CustomGridDataRowBehavior());

    public class CustomGridDataRowBehavior : GridDataRowBehavior
    {
        protected override bool ProcessTabKey(KeyEventArgs keys)
        {
            // You custom logic.
            return true;
        }
    }

    In case your scenario is different, can you, please share a code snippet demonstrating the behavior on your end and explain in detail the desired functionality?

    Looking forward to your reply.

    Regards,
    Hristo Merdjanov
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
  6. amit
    amit avatar
    7 posts
    Member since:
    Sep 2016

    Posted 12 Oct Link to this post

         <telerik:RadGridView x:Name="grdResult" IsReadOnly="True"  AutoGenerateColumns="False" IsFilteringAllowed="True"
                                     CanUserSortColumns="True" ScrollViewer.HorizontalScrollBarVisibility="Auto"   ScrollMode="RealTime"
                                     ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="True"
                                    
                                          ItemsSource="{Binding ResultLit,UpdateSourceTrigger=PropertyChanged}" 
                                     SelectedItem="{Binding SelectedResult,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" 
                                     RequestBringIntoView="grdScrollConstantPosition_RequestBringIntoView" 
                            EnableColumnVirtualization="True" EnableRowVirtualization="True">

     

    <telerikGridview:GridViewDataColumn DataMemberBinding="{Binding JobCode}" TabStopMode="Stop" Width="120*" Header="Assignment Number" SortingState="Descending" UniqueName="AssignmentNo">
                            <telerikGridview:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal"  VerticalAlignment="Center" Margin="0,0,0,0">
                                        <TextBlock Text="{Binding Path=JobCode}"></TextBlock>
                                        <TextBlock Text=" ("></TextBlock>
                                        <Button ToolTip="Open" Content="{Binding ID,StringFormat={} ({0})}"  Tag="{Binding ProjectsID}"  HorizontalAlignment="Center"  Command="{Binding DataContext.IDCommand,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}},UpdateSourceTrigger=PropertyChanged}" 
                                                        CommandParameter="{Binding}"  Style="{StaticResource linkButtonWithUnderLine}" >
                                            <!--<Button.Content>
                                            <TextBlock Text="{Binding No,StringFormat={} ({0})}" HorizontalAlignment="Center" TextAlignment="Center"></TextBlock>
                                        </Button.Content>-->
                                        </Button>
                                    </StackPanel>
                                </DataTemplate>
                            </telerikGridview:GridViewDataColumn.CellTemplate>
                        </telerikGridview:GridViewDataColumn>

    </telerik:RadGridView>

     

    Lets say, i have 70 records, and currently in view is 18 records. Now, I am pressing tab for 19th time then scroll down to display 19th record. Scroll according to tab key navigation.

  7. amit
    amit avatar
    7 posts
    Member since:
    Sep 2016

    Posted 12 Oct in reply to Hristo Merdjanov Link to this post

     Lets say, i have 70 records, and currently in view is 18 records. Now, I am pressing tab for 19th time then scroll down to display 19th record. Scroll according to tab key navigation.

    Please see attachment
  8. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    711 posts

    Posted 13 Oct Link to this post

    Hello Amit,

    Based on the attached screenshot I am assuming that you are using our WPF suite. Please note that here are Telerik UI for WinForms forums. In order to receive a fast and reliable answer please post your question in the correct forum: http://www.telerik.com/forums/wpf/gridview.

    I hope this helps.

    Regards,
    Hristo Merdjanov
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top
UI for WinForms is Visual Studio 2017 Ready