Is there anyone who could provide me some help to this issue.
Thanks in advanced for any help.
6 Answers, 1 is accepted
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
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.
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
<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.
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 attachmentBased 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