Gridview Keyboard Manipulation

2 posts, 0 answers
  1. Tyler
    Tyler avatar
    13 posts
    Member since:
    Jun 2012

    Posted 20 Jun 2013 Link to this post

    I am working on a radgrid with ComboBox columns and I'm wanting to switch around the way the keyboard manipulates the dropdowns and the grid. I want to navigate through the cells with the arrow keys and when I get to the cell I want I want to hit Enter and that will open the dropdown list of that cell. After I navigate through the items of the dropdown list I want to hit Enter again and the cell no longer be in edit mode and the value i chose to be displayed. Currently I have it behaving similar to that except not exactly. The dropdown will open on Enter and I can cycle through the items, however, when I hit enter again the dropdown closes and the value is selected but the cell is still active and when I use the arrow keys it still sorts through the dropdown items so I have to hit Enter again to commit the data. And when I hit Enter the second time the data is committed and the cell under the cell I just changed is now the selected cell....I don't want Enter to move down. How can I accomplish this. I realize this is kind of confusing so any help would be appreciated thanks.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 24 Jun 2013 Link to this post

    Hello,

    You can redefine how the GridView handles the "Enter" key (and other keys) creating your own custom keyboard provider. Please refer to our online documentation for further details. It also shows some sample code. 

    Regards,
    Didie
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top