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

How to tell whether Esc is from an Insert or Edit in a KeyboardCommandProvider

4 Answers 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 27 Jan 2014, 09:25 PM
How can I tell whether Esc is from an Insert or Edit in a KeyboardCommandProvider?
Thanks in advance,
Steve

4 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 30 Jan 2014, 02:27 PM
Hi Steve,

You could check the parentGrid.Items.IsEditingItem property. If it is True, then the Esc is from Edit, otherwise it is from Insert.

Let me know how this works for you.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Steve
Top achievements
Rank 1
answered on 30 Jan 2014, 09:22 PM
That did the trick!
Thanks,
Steve
0
Steve
Top achievements
Rank 1
answered on 30 Jan 2014, 11:11 PM
I may be a little slow, but is there also a way to tell that I'm inserting?
Thanks in advance,
Steve
0
Dimitrina
Telerik team
answered on 31 Jan 2014, 08:41 AM
Hello,

You can value of parentGrid.Items.IsAddingNew.

I hope this helps.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Steve
Top achievements
Rank 1
Share this question
or