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

Call function AFTER menu effect has completed

1 Answer 63 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 04 Mar 2013, 09:04 PM
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?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Kamen Bundev
Telerik team
answered on 05 Mar 2013, 01:41 PM
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.

Regards,
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!
Tags
Menu
Asked by
Robert
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Share this question
or