Tab with enter key in GridView

8 posts, 0 answers
  1. David Schulz
    David Schulz avatar
    3 posts
    Member since:
    Jul 2009

    Posted 12 Jan 2010 Link to this post

    Is it possible to treat the enter key like tab for tabbing through cells in a gridview?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Jan 2010 Link to this post

    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.
  3. DevCraft banner
  4. Son Nguyen
    Son Nguyen avatar
    4 posts
    Member since:
    Jul 2012

    Posted 01 Jul 2010 Link to this post

    Is this functionality available now?
  5. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 02 Jul 2010 Link to this post

    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
  6. Son Nguyen
    Son Nguyen avatar
    4 posts
    Member since:
    Jul 2012

    Posted 03 Jul 2010 Link to this post

    Hi Milan,

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

    Regards,
    Bilal Azam
  7. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 04 Jul 2010 Link to this post

    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
  8. Jose
    Jose avatar
    2 posts
    Member since:
    Aug 2014

    Posted 19 Jan in reply to Milan Link to this post

    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?
  9. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    371 posts

    Posted 22 Jan Link to this post

    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
Back to Top
DevCraft banner