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

RadGrid Keyboard Input Issue

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carlos Castillo
Top achievements
Rank 1
Carlos Castillo asked on 13 Jul 2010, 08:07 PM

Hi everybody, from Bogota, Colombia.

I have 2 questions about data input using RadGrid control.

I input data to the grid using a template. If I press Enter key, the first record appears into the template, with all their data. I want to know why does it occurs, Has this issue a solution?

My customer wants use Enter key in order to move between screen controls, instead of Tab key. How can I move between controls using Enter key instead of Tab key?

Well, thanks in advance form your answers.

Best regards,

CARLOS ALBERTO CASTILLO.
Bogota, Colombia.

PS: Please, forgive mistakes you find here. English is a foreign languaje to me. 

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 19 Jul 2010, 08:58 AM
Hello Carlos,

The cause of the described behavior is that when you have multiple buttons in a form the first one rendered is set as Default button and its events are fired when you press Enter.

To use the Enter key to move between screen controls, you could handle the OnKeyDown event of the body, check the keyCode and if it corresponds to Enter, set the focus to the next control. I have made a sample project demonstrating how this can be implemented. You can find it attached to this message.

I hope this helps.

Best wishes,
Mira
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
Grid
Asked by
Carlos Castillo
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or