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

CellCancelEdit event???

2 Answers 118 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Phi
Top achievements
Rank 1
Phi asked on 03 Nov 2010, 01:52 AM
We have CellBeginEdit and CellEndEdit. Could we have a CellCancelEdit event as well?

When user editing value in a cell, usually the validation process usually taken in the CellValidating event. In the CellValidating event, I display validation error messages on the status bar and with a beep. When the user pressed the Escape key to cancel the edit mode, I would like to clear out any validation error on the status bar. Right now, there is no easy way to detect when the user cancel the edit mode.

One solution would be keytrapped the grid and detect when the ESC key is pressed together with a boolean variable to keep track of when user entered edit mode. But this is ugly and not elegant at all :)

Phi

2 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 03 Nov 2010, 08:40 AM
Hello,

Sorry, there is no notification for cancelled edit operation. But that why do you need to clear validation errors on just escape, you can just add the validation errors in the CellFormatting event, that way when the user cancels the edit operation, the cell formatting event will fire and you can change the messages in the statusbar from there.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
0
Svett
Telerik team
answered on 08 Nov 2010, 04:42 PM
Hi Phi,

Thank you for your suggestion.

We will consider it as a feature request. If more customers request it, we will increase the priority of the task for one of the next major releases.

Kind regards,
Svett
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
Phi
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Svett
Telerik team
Share this question
or