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

Gridview Keyboard Manipulation

1 Answer 76 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tyler
Top achievements
Rank 1
Tyler asked on 20 Jun 2013, 04:00 PM
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.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 Jun 2013, 07:13 AM
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.

Tags
GridView
Asked by
Tyler
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or