The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
UNUnknown Syncfusion Team July 29, 2020 12:27 PM UTC
Hi Aleksander,
Thanks for contacting Syncfusion support.
We have checked your query “Need to prevent enter to invoke button click when Enter key is pressed inside EditControl and IsDefault is enabled for button” and created a sample to meet your requirement please refer the below for same.
Unfortunately this not really sutable for my situation.
Is it possible not to use button's name? I assume that typical AcceptsReturn behavior is not implemented into control?
APAiswarya Patturaja Syncfusion Team July 31, 2020 03:45 PM UTC
Hi Aleksander,
Greetings from Syncfusion support.
Query 1:
Since `IsDefault` property registers the Button with AccessKeyManager, click event invoked independent of the focused control. You may face the same behavior in TextBox also. We could able to restrict the window closing by
AcceptReturn property in EditControl working our side, for further details please refer the sample provided in below link. If you still facing issues with AcceptReturn behavior, reproduce it in below sample and revert us.
SKSenthil Kumaran Rajan Syncfusion Team August 3, 2020 06:39 AM UTC
Hi Aleksander,
Thank you for your update.
We can suppress the button click event to be triggered while pressing on enter key in EditControl by using the property named EnterKeyBehavior. We have modified the sample for your reference and this can be downloaded from below location.