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
http://docs.kendoui.com/api/mobile/modalview#events-open
5 Answers, 1 is accepted
0
Hello Brandon,
Petyo
Telerik
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.
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
http://docs.telerik.com/kendo-ui/api/mobile/modalview#events-open
0
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
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
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
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
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!