We are building an application support accessiblity and we have a problem: We place a control to column in gridview, we can use keyboard to move between cells but can't focus to that control (you can see attached file). How can we do this?
Thanks in advanced,
Triet
7 Answers, 1 is accepted
In order to provide you with a workable solution, we would need more details about your application and the exact definition of the control you are placing in the column. It would be great if you could send us a sample project or paste some code-snippets considering the issue.
Maya
the Telerik team
- MainPage.xaml
<UserControl x:Class="SilverlightApplication6.MainPage" mc:Ignorable="d" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" d:DesignHeight="300" d:DesignWidth="400"> <Grid x:Name="LayoutRoot" Background="White"> <telerik:RadGridView AutoGenerateColumns="False" Width="400" Height="300" HorizontalAlignment="Left" x:Name="grClientData" AutomationProperties.HelpText="Client Data" ShowGroupPanel="False"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="Name" Width="150" MinWidth="100" MaxWidth="150"> <telerik:GridViewColumn.CellTemplate> <DataTemplate> <HyperlinkButton x:Name="hplClientName" Tag="{Binding}" Content="{Binding UserName, Mode=TwoWay}" FontStyle="Italic" /> </DataTemplate> </telerik:GridViewColumn.CellTemplate> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn Header="NINO" DataMemberBinding="{Binding NINO}" /> <telerik:GridViewDataColumn Header="Age" DataMemberBinding="{Binding Age}" /> </telerik:RadGridView.Columns> </telerik:RadGridView> </Grid> </UserControl>using System.Collections.Generic; using System.Windows.Controls; namespace SilverlightApplication6 { public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); var clients = new List<Client> { new Client("David Seaman", "AB123456C", 48), new Client("Roberto Baggio", "AB123456D", 43) }; grClientData.ItemsSource = clients; } } } namespace SilverlightApplication6 { public class Client { public string UserName { get; set; } public string NINO { get; set; } public int Age { get; set; } public Client(string userName, string niNo, int age) { UserName = userName; NINO = niNo; Age = age; } } } Code-snippets creates a grid which has a hyperlink. We can move between cells (by keyboard), but can't click on hyperlink by using keyboard.
How can we modify gridview to support this requirement?
Thanks!
I'm waiting your answer! :(
We tested different scenarios following up your requirement, but unfortunately we discovered that for the time being a button's property IsFocused is not set to "True" when using keyboard navigation. Thus it cannot be clicked through keys.
We have logged that issue into our PITS system and we will work on implementing that functionality. You can trace its progress by its ID - 3108.
Please excuse us for the inconvenience caused. I have updated your Telerik points accordingly.
Maya
the Telerik team
I will waiting for next version.
this issue was fixed?
Yes, the issue has already been fixed.
Maya
the Telerik team