On Clicking Space Button click event

1 Answer 104 Views
Button Form General Discussions
Vishnu
Top achievements
Rank 1
Iron
Veteran
Vishnu asked on 24 Aug 2021, 02:25 PM | edited on 24 Aug 2021, 02:33 PM

Hi,

 

On Clicking Space from Keyboard need to perform Button click event.

<EditForm OnValidSubmit="@OnFormValidSubmit" Model="@Model">
            <TelerikButton Icon="save" ButtonType="@ButtonType.Submit" Primary="true">Upgrade</TelerikButton>
            <TelerikButton Icon="cancel" ButtonType="@ButtonType.Button" OnClick="@OnCancelClick">Cancel</TelerikButton>
   </EditForm>

Thanks,

Vishnu Vardhanan H

Vishnu
Top achievements
Rank 1
Iron
Veteran
commented on 25 Aug 2021, 03:38 PM

Could you please update on the same

1 Answer, 1 is accepted

Sort by
0
Nadezhda Tacheva
Telerik team
answered on 27 Aug 2021, 07:52 AM

Hello Vishnu,

As per the keyboard navigation configuration of the TelerikButton, once the button is focused, pressing Space or Enter will click it. You can also test that in our live demo - Button - Keyboard Navigation.

That being said, with your current configuration, using a TelerikButton in a form, you need to navigate through the form elements (with Tab) to focus the button and then press Space to click it.

I hope you will find the above information useful. If you have any other questions, please do not hesitate to contact us.

Thank you for choosing Telerik UI for Blazor!

Regards,
Nadezhda Tacheva
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Button Form General Discussions
Asked by
Vishnu
Top achievements
Rank 1
Iron
Veteran
Answers by
Nadezhda Tacheva
Telerik team
Share this question
or