Call function AFTER menu effect has completed

2 posts, 1 answers
  1. Robert
    Robert avatar
    39 posts
    Member since:
    Oct 2012

    Posted 04 Mar 2013 Link to this post

    I have a menu that is contained in a slide-in div (using kendo.fx.slidein) and I want to make sure the slidein effect does not play until *after* the menu effect has completed.

    Is there a way to ensure that my KendoMenu close event is called after the animation is complete, or to have the close event function handler call the slidein effect asynchronously with the menu effect?

  2. Answer
    Kamen Bundev
    Kamen Bundev avatar
    1532 posts

    Posted 05 Mar 2013 Link to this post

    Hi Robert,

    The Menu itself doesn't have this functionality, however the Popup widget that Menu uses for its submenus has a deactivate event which you can probably use. This can be difficult though, since the Menu popups are created on demand. So, to ease the task, I went ahead and created activate/deactivate events for the Menu and all wrappers. You will find them in the Q1 release due for release on 20th of March. As a workaround until then, you can use a 200ms or more setTimeout in the close event to simulate it.

    Let me know if this helps.

    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top