This is a migrated thread and some comments may be shown as answers.

How to prevent dialog closing?

2 Answers 2991 Views
Dialog
This is a migrated thread and some comments may be shown as answers.
Tayger
Top achievements
Rank 1
Iron
Tayger asked on 18 May 2018, 10:46 AM

Hello

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

Sort by
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.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Tayger
Top achievements
Rank 1
Iron
answered on 22 May 2018, 09:28 AM

Hello Ivan

Excellen, thank you! Sometimes it can be that simple! :o)

Regards

Tags
Dialog
Asked by
Tayger
Top achievements
Rank 1
Iron
Answers by
Ivan Danchev
Telerik team
Tayger
Top achievements
Rank 1
Iron
Share this question
or