How does one do a 'Cancel' on a Form widget. I see the events for Submit / Clear / Validate. It looks like the only way to leave a form is to submit it.
1 Answer, 1 is accepted
0
Dimitar
Telerik team
answered on 22 May 2020, 05:41 AM
Hello Lance,
I am not sure that I understand the scenario correctly. Therefore, could you elaborate a bit more what exactly are you trying to achieve?
Generally speaking, the Form renders a "Submit" and "Clear" button by default, that could be replaced through a template if needed where a custom button could be rendered. This can be achieved through the .ButtonsTemplateId() option:
With the above setup you can wire a click handler to the custom button and execute specific logic when clicked.
Regards,
Dimitar
Progress Telerik
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.