RadzenTemplateForm suppress Enter keydown on Submit

Hi,
I had some custom components react with Enter keydown event. Can I make Submit event for RadzenTemplateForm is not fired when Enter key is down? Thank you.

Hi @Yongkee_Cho,

In HTML world pressing ENTER on <input> element inside <form /> with <button type='submt' /> will submit the form. What you can do is to set ButtonType to Button for the save button in your form and call Submit() method of the RadzenTemplateForm manually using Click event of the button.

Hi.
I followed these rules and it worked. But how can I trigger all the validators in RadzenTemplateForm on my custom Save button?

Thanks

If it’s outside of the form, like this:

Or using this technique: