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

Submit/Default Button when selecting item with Enter

1 Answer 900 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 22 Jan 2019, 04:30 PM

Hi,

I noticed in Edge and Chrome when i select an item in the dropdown of RadComboBox with the Enter Key the Default Button of the Form gets pressed. In IE and Firefox this doesnt happen (which is what i would like). Is this intended/what would be the best workaround?

AutoPostBack and EnableLoadOnDemand on the ComboBox are set to true, without AutoPostBack this doesnt happen.

Our Telerik Version is 2018.2.710.45

Regards,

Alex

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 25 Jan 2019, 08:40 AM
Hello Alex,

You can resolve this issue by placing a hidden button on the page and setting it to be the default button of the form:
https://www.telerik.com/forums/radgrid-disable-enter-key#KAn1O5APR0SaXfk3MrhL9Q

This is also available for the asp:Panel container control:
https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.panel.defaultbutton?redirectedfrom=MSDN&view=netframework-4.7.2#System_Web_UI_WebControls_Panel_DefaultButton

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ComboBox
Asked by
Alex
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or