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

Tab with enter key in GridView

7 Answers 80 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
David Schulz
Top achievements
Rank 1
David Schulz asked on 12 Jan 2010, 02:09 PM
Is it possible to treat the enter key like tab for tabbing through cells in a gridview?

7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 15 Jan 2010, 03:52 PM
Hello David,

Unfortunately this is not possible currently. We will do our best to add this for Q1 2010 (middle of March).

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Son Nguyen
Top achievements
Rank 1
answered on 01 Jul 2010, 09:26 PM
Is this functionality available now?
0
Milan
Telerik team
answered on 02 Jul 2010, 06:59 AM
Hi Bilal Azam,

By default the grid will not behave this way but now you can easily alter its behavior by using IKeyboardCommandsProvider as demonstrated in this blog post. 


Sincerely yours,
Milan
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
Son Nguyen
Top achievements
Rank 1
answered on 03 Jul 2010, 08:31 PM
Hi Milan,

The link to the other blog post doesn't seem to be working.

Regards,
Bilal Azam
0
Milan
Telerik team
answered on 04 Jul 2010, 08:40 AM
Hello Bilal Azam,

Seems that the blog title has changed - here is the updated link.


Sincerely yours,
Milan
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
Jose
Top achievements
Rank 1
answered on 19 Jan 2016, 06:35 PM
I am looking for the information mentioned in this thread. The link(s) to the blog post do not work. I was unable to find the post by searching in your blog either. Is the post still available? Do you have an updated link you can share with us?
0
Dilyan Traykov
Telerik team
answered on 22 Jan 2016, 09:41 AM
Hello,

This kind of functionality can be achieved by creating a custom Keyboard Command Provider for our GridView. We simply have to add the following lines to its ProvideCommandsForKey method:

if (key == Key.Enter)
{
    commandsToExecute.Clear();
 
    commandsToExecute.Add(RadGridViewCommands.MoveNext);
    commandsToExecute.Add(RadGridViewCommands.SelectCurrentUnit);
 
    if (this.parentGrid.RowInEditMode != null)
    {
        commandsToExecute.Add(RadGridViewCommands.BeginEdit);
    }
}
 
// remove if you still want the user to be able to navigate with Tab
if (key == Key.Tab)
{
    commandsToExecute.Clear();
}

I hope this information is of help.

Regards,
Dilyan Traykov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Calendar
Asked by
David Schulz
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Son Nguyen
Top achievements
Rank 1
Milan
Telerik team
Jose
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or