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

Esc twice to leave combobox in grid column

1 Answer 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yves
Top achievements
Rank 1
Yves asked on 23 Aug 2012, 12:30 PM
Dear support,

In a gridviewcomboboxcolumn, or in a datatemplate with a combobox in a gridviewdatacolumn, when the combobox is in dropdown, I have to press Esc twice to leave the edit mode. In a normal gridviewdatacolumn, I only have to press once.

A user will be confused and after pressing Esc once, will use the arrow down to go to the next gridrow. In the case of the combobox, this will trigger the combobox to select the next item.

Is there a way to leave the edit mode of the comboboxcolumn with only one Esc?

Is there a way to set a grid cell to 'read mode' from code behind? (then it could be solved in keydown).

Any suggestion is welcome.

Best regards,

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 Aug 2012, 12:14 PM
Hello,

That would be the expected behaviour if the ComboBox is opened when the Esc is pressed. In this case ComboBox is the one handling the key. Thus its editing will be cancelled and the changes reverted on the second press of the Esc button. 

After you select a value from the ComboBoxColumn, then you should be able to cancel the select with the first Esc key pressed.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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