Esc twice to leave combobox in grid column

2 posts, 0 answers
  1. Yves
    Yves avatar
    7 posts
    Member since:
    Aug 2011

    Posted 23 Aug 2012 Link to this post

    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,
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 24 Aug 2012 Link to this post


    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top