Pressing the Escape
key will abort the edit operation and the changes will be rejected. It is desired behavior. You can plug into this behavior by creating a custom GridDataRowBehavior
and overriding its ProcessEscapeKey
method. You can find below a sample code snippet demonstrating how to show a message box after the default logic for processing the Escape key has already been executed. It is up to you whether the default logic will be performed and what exactly to performed according to the requirements that you have:
//register the custom row behavior
BaseGridBehavior gridBehavior = radGridView1.GridBehavior
CustomGridDataRowBehavior : GridDataRowBehavior
//execute the basic logic
"Escape key is pressed"
I hope this information helps.
Dess | Tech Support Engineer, Sr.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.