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

kendo window open event triggers two times

1 Answer 290 Views
Window
This is a migrated thread and some comments may be shown as answers.
Maksim
Top achievements
Rank 1
Maksim asked on 11 Aug 2015, 11:12 AM

Hi, ​we are writing mobile app and have heavy perfomance problems due to double event triggering

Example: double kendo open event

http://dojo.telerik.com/eFiKA

Why? Are there any workarounds?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 13 Aug 2015, 08:08 AM
Hello Maksim,

Please try the following setup:
$("#div_window").kendoWindow({
        visible: false,
          open: function() {
...

The same approach is demonstrated in the online example here:
Kendo Window Events Demo

Kendo UI Window is visible by default and this is the reason the open event is triggered two times.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Window
Asked by
Maksim
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or