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

DefaultButton on each row

1 Answer 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 28 Aug 2017, 06:54 AM

Hi,

 

Imagine I have the following scenario: RadGrid with a textbox and button on each row.

How can I achieve that each button is DefaultButton (reacts on Enter key) when the user focuses in the row's textbox?

 

Thanks for help,

Marc

1 Answer, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 30 Aug 2017, 09:59 AM
Hello  Marc,

The described scenario can be achieved by adding a custom JavaScript logic. You can add an event for the Enter key when a textbox is focused as the following. Then you can trigger a click on a button.

Regards,
Magdalena
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Magdalena
Telerik team
Share this question
or