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

How to make an Enter key move to the next row and automatically "BeginEdit"

4 Answers 185 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jason Shaver
Top achievements
Rank 1
Jason Shaver asked on 26 Feb 2010, 05:34 PM
We are trying to use the RadGridView for a data entry app and want to allow people to enter vertical information quickly.  Here is the story we are trying to complete

User click on a databound column's cell (row 1 lets say) and puts it in edit mode.
User types a value and hits "Enter", the grid drops down a row and puts that cell into edit mode.
Repeat a couple hundred times.

How would we do this?

4 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 04 Mar 2010, 07:32 AM
Hello Jason Shaver,

Unfortunately with the current version (2009.Q3.1314) there is no handy way to do that. That's why with the new version (2010.Q1) this behavior will be available out of the box. Please try our beta and let me know about the result.

All the best,
Nedyalko Nikolov
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.
0
Kirill Prokopenko
Top achievements
Rank 1
answered on 08 Apr 2010, 05:48 PM
Hello guys,

I'm using version 2010.Q1. And I have just an opposite situation. I'm using BeginEdit to check some business logic conditions and then decide if editing a currently selected cell is allowed. I suppose that this operation can take some time and resources and in general can show me for example a confirmation dialog window, or something else that will certainly require user's attention and time. That is why I have been trying to get rid of autoselecting the next row and switching to edit mode. What I get: if I edit a cell and commit it by loosing focus - everything works fine, but if I commit it with pressing 'Enter' key, I will go to the next row and have let's say 300 confirmation dialog windows appeared and asking for something or saying that I can not perform some action (if my BL denies editing the next cell). That will be annoying I guess.

It's a really nice feature, but in my particular case I would like to disable it.

Hope for your help.
0
Nedyalko Nikolov
Telerik team
answered on 13 Apr 2010, 03:20 PM
Hi Ibrahim Muckra,

I'm attaching a sample application that can give you some ideas how to meet your goals. Take a look at the CustomCommandProvider class and its usage.

Regards,
Nedyalko Nikolov
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.
0
Kirill Prokopenko
Top achievements
Rank 1
answered on 13 Apr 2010, 05:24 PM
Hello, Nedyalko Nikolov

Thanks for a great sample. That's exactly what I asked about.

Yours, Ibrahim Muckra


Tags
GridView
Asked by
Jason Shaver
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Kirill Prokopenko
Top achievements
Rank 1
Share this question
or