Kendo Mobile 2013.2.1024 ModalView widget Open event handler not firing

6 posts, 0 answers
  1. Brandon Peterson
    Brandon Peterson avatar
    47 posts
    Member since:
    May 2007

    Posted 07 Nov 2013 Link to this post

    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
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 11 Nov 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Roman
    Roman avatar
    27 posts
    Member since:
    Sep 2013

    Posted 17 Feb 2014 Link to this post

    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
  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 19 Feb 2014 Link to this post

    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!
  6. Roman
    Roman avatar
    27 posts
    Member since:
    Sep 2013

    Posted 06 Mar 2014 Link to this post

    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
  7. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 06 Mar 2014 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready