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

Independent hover delays

5 Answers 131 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Brian Vallelunga
Top achievements
Rank 1
Brian Vallelunga asked on 23 Feb 2015, 05:54 PM
Is there a way to set hoverDelay only for the menu closing? Or conversely to remove the hoverDelay on open? We'd like a longer hoverDelay for closing the menu, but not delay opening any further.

5 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 25 Feb 2015, 06:34 AM
Hi,

One way for achieving such behavior is to set the desired hoverDelay in open and close events as for example it is done in this sample.

Hope this will help you solve the issue.

Regards,
Plamen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Brian Vallelunga
Top achievements
Rank 1
answered on 25 Feb 2015, 02:47 PM
Your suggestion works fairly well without any further sub-menus, but fails when those are present: http://dojo.telerik.com/alEPA/10
0
Plamen
Telerik team
answered on 26 Feb 2015, 07:56 AM
Hi Brian,

The hoverDelay functionality in Kendo Menu is used to avoid accidental closure on leaving the item with mouse and that is why when there are more levels of nodes it is only applied for the last opened node. All the other nodes are closed immediately without delay by default as it is in the dojo sample that you sent too. 

Hope this will explain the issue.

Regards,
Plamen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Brian Vallelunga
Top achievements
Rank 1
answered on 26 Feb 2015, 03:28 PM
What you describe would be great, except that setting a longer delay also delays the opening of the sub-menu. Please try my example again. I want a delay to prevent a menu from closing. I don't want to delay the sub-menu from opening.

Thanks
0
Plamen
Telerik team
answered on 27 Feb 2015, 01:48 PM
Hello Brian,

Yes indeed you are right- I have inspected the scenario once again and unfortunately having different hoverDelay for expand and collapse when there are more than two levels of items is not supported scenario. 

You can submit a feature request about this functionality on the UserVoice portal;

Regards,
Plamen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Menu
Asked by
Brian Vallelunga
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Brian Vallelunga
Top achievements
Rank 1
Share this question
or