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

[Help]RadGridView don't scroll on tab

6 Answers 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kreshnik
Top achievements
Rank 1
Kreshnik asked on 11 Feb 2011, 09:04 AM
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.

6 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 11 Feb 2011, 11:24 AM
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.
0
amit
Top achievements
Rank 1
answered on 12 Oct 2016, 07:51 AM

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.

0
Hristo
Telerik team
answered on 12 Oct 2016, 08:59 AM
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.
0
amit
Top achievements
Rank 1
answered on 12 Oct 2016, 09:57 AM

     <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.

0
amit
Top achievements
Rank 1
answered on 12 Oct 2016, 10:30 AM

 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
0
Hristo
Telerik team
answered on 13 Oct 2016, 09:08 AM
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.
Tags
GridView
Asked by
Kreshnik
Top achievements
Rank 1
Answers by
Jack
Telerik team
amit
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or