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

close event - error in documentation

1 Answer 8 Views
Window
This is a migrated thread and some comments may be shown as answers.
Frederic
Top achievements
Rank 1
Veteran
Frederic asked on 23 Feb 2021, 03:57 PM

On the documentation of the "close" event, you say that the the event is raised AFTER the animation is over. 

"// the closing animation has finished"

So, it's too late to stop it.

But, in fact, it occurs "before", and we can call e.preventDefault(), to abort it.

https://docs.telerik.com/kendo-ui/api/javascript/ui/window/events/close

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 25 Feb 2021, 07:26 AM

Hello Frederic,

The linked api of the close event indeed contains a comment in the example that conveys the wrong message. I will amend the example and add additional relevant information to the description of the event.

You are also correct that the close event is executed once the Window is closed through user interaction (before the closing animation is finished). In case you need a special event that is triggered right after the animation is finished, you can utilize the deactivate event:

Regards,
Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Window
Asked by
Frederic
Top achievements
Rank 1
Veteran
Answers by
Dimitar
Telerik team
Share this question
or