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

Gridview, prevent the user leave from editing mode pressing ESC button

1 Answer 330 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Otávio
Top achievements
Rank 1
Otávio asked on 14 Aug 2010, 01:30 PM
Hello,
I'm implementing row editing functionalities to my griView, but I'm having some problems. I begin edit, no problem, but if I press the 'Esc' button the gridview leaves this mode and does'nt fire the validating events ( CellValidating). I edit some column that can't receive an empty data (this validation I do into the cellvalidating), but if the user press the Esc button, my event handler doesn't work. 
May I prevent the cell to exit edit mode by pressing esc ? Any suggestions ?

Thanks
Otávio C.

1 Answer, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 14 Aug 2010, 02:23 PM
Hello Otávio,

 The Escape key is used to cancel an edit operation. If you cancel an edit operation, validation will not be performed, because not data will be committed. To disable the Escape key functionality, please take a look at this blog post.

All the best,
Yavor Georgiev
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
Tags
GridView
Asked by
Otávio
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or