I'm using a dialog widget. By default the dialog closes on clicking on any defined action buttons. I would like to prevent that and close the dialog programmatically. How can I set the defined action buttons to not close after clicking on them?
Regards
2 Answers, 1 is accepted
0
Accepted
Ivan Danchev
Telerik team
answered on 22 May 2018, 06:53 AM
Hello Tayger,
The buttons can be prevented from closing the Dialog if you return false in their action functions. As for closing the Dialog programmatically, this can be done by calling its close API method. The following dojo example demonstrates both.