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

Dialog: Custom action for [x] close button

1 Answer 131 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
Domenico
Top achievements
Rank 1
Domenico asked on 06 May 2017, 07:48 AM

Hello,

starting from the example in this page http://www.telerik.com/kendo-angular-ui/components/dialog/service/#toc-specify-custom-actions ,

there is a way to assign a custom action for the [x] close button? I have to assign a guard before close dialog

Thank's

1 Answer, 1 is accepted

Sort by
0
Joana
Telerik team
answered on 10 May 2017, 07:13 AM

Hello Domenico,

You could subscribe to the DialogCloseResult which will fire when clicking the [x] icon. A sample which shows the behavior: http://www.telerik.com/kendo-angular-ui/components/dialog/service/#toc-usage.

Regards,
Joana
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ModalView
Asked by
Domenico
Top achievements
Rank 1
Answers by
Joana
Telerik team
Share this question
or