I have a TelerikForm containing a Fluent Validator and 2 buttons. Only one of them has to validate the form.
However, even if I set NO code into the button's associated method, it does trigger the validation.
Seems to be a default behaviour.
How to disable it for my second button?
Thx in advance
A
1 Answer, 1 is accepted
1
Accepted
Radko
Telerik team
answered on 25 Dec 2023, 02:07 PM
Hi Arnaud,
I have no repro, but my guess is that there is no explicit type set to the button, meaning it defaults to the submit. If this is so, then each click the button would attempt to submit the form, thus triggering validation.
If you are using our Button component, then pass a value to the ButtonType parameter: