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

Kendo Mobile 2013.2.1024 ModalView widget Open event handler not firing

5 Answers 54 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
Brandon Peterson
Top achievements
Rank 2
Brandon Peterson asked on 08 Nov 2013, 05:45 AM
The ModalView open event handler is not firing as per the documentation below whether I call the open method $("#mvTest").data("kendoMobileModalView").open()  or use data-rel="modal" and href="#mvTest" attributes on a button widget.

http://docs.kendoui.com/api/mobile/modalview#events-open

5 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 11 Nov 2013, 08:56 AM
Hello Brandon,

Thank you for contacting us. The open/close/focus group of methods don't trigger their respective events - this is  convention across all Kendo UI widgets. From our experience, triggering the events in this case often causes loops in the application logic. The open event should be triggered only when the widget is open due to user actions.

I am glad to inform you that the open event is triggered as expected in our upcoming release. Please check this jsbin, which uses our Q3 beta.

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Roman
Top achievements
Rank 1
answered on 17 Feb 2014, 03:41 PM
I came across the very same issue. The open event is (still) not firing as documented here:

http://docs.telerik.com/kendo-ui/api/mobile/modalview#events-open
0
Petyo
Telerik team
answered on 19 Feb 2014, 09:03 AM
Hello Roman,

I updated the previous jsbin to 2013 Q3 official version, and the event seems to be working as expected. What am I missing?

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Roman
Top achievements
Rank 1
answered on 06 Mar 2014, 12:20 PM
Hello Petyo,

sorry for the delayed answer, I had to attend another project for a while.

I have modified your jsbin to show the problem. It basically occurs when open() is called manually, which should fire the event anyway.

http://jsbin.com/cojil/2/edit

Thanks,
Roman
0
Petyo
Telerik team
answered on 06 Mar 2014, 04:45 PM
Hello Roman,

This behavior is by design. All Kendo UI widgets API calls do not trigger their corresponding events (open -> open, for example).

The reason behind this design decision is that it is trivial to call the event handler if you need to, but hard to identify and skip event callbacks from user interaction versus API calls if needed. 

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