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

Support keyboard in GridView

7 Answers 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Triet Nguyen Cong
Top achievements
Rank 2
Triet Nguyen Cong asked on 13 Aug 2010, 12:47 PM
Hi team,

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

Sort by
0
Maya
Telerik team
answered on 13 Aug 2010, 02:36 PM
Hello Triet Nguyen Cong,

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.

Regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Triet Nguyen Cong
Top achievements
Rank 2
answered on 16 Aug 2010, 12:34 PM
Hi Maya,

- 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>
- MainPage.xaml.cs
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;
        }
    }
}
- Client.cs
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!
0
Triet Nguyen Cong
Top achievements
Rank 2
answered on 17 Aug 2010, 08:51 AM
Please help me!
I'm waiting your answer! :(
0
Accepted
Maya
Telerik team
answered on 17 Aug 2010, 09:16 AM
Hello Triet Nguyen Cong,

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.

Kind regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Triet Nguyen Cong
Top achievements
Rank 2
answered on 18 Aug 2010, 04:07 AM
Thanks for your answer!
I will waiting for next version.
0
Triet Nguyen Cong
Top achievements
Rank 2
answered on 28 Sep 2010, 08:47 AM
Execute me,
this issue was fixed?
0
Maya
Telerik team
answered on 28 Sep 2010, 12:16 PM
Hello Triet Nguyen Cong,

Yes, the issue has already been fixed.
 

Greetings,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Triet Nguyen Cong
Top achievements
Rank 2
Answers by
Maya
Telerik team
Triet Nguyen Cong
Top achievements
Rank 2
Share this question
or