Independent hover delays

6 posts, 0 answers
  1. Brian Vallelunga
    Brian Vallelunga avatar
    88 posts
    Member since:
    May 2008

    Posted 23 Feb 2015 Link to this post

    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.
  2. Plamen
    Admin
    Plamen avatar
    2733 posts

    Posted 25 Feb 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Brian Vallelunga
    Brian Vallelunga avatar
    88 posts
    Member since:
    May 2008

    Posted 25 Feb 2015 in reply to Plamen Link to this post

    Your suggestion works fairly well without any further sub-menus, but fails when those are present: http://dojo.telerik.com/alEPA/10
  5. Plamen
    Admin
    Plamen avatar
    2733 posts

    Posted 26 Feb 2015 Link to this post

    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!
     
  6. Brian Vallelunga
    Brian Vallelunga avatar
    88 posts
    Member since:
    May 2008

    Posted 26 Feb 2015 in reply to Plamen Link to this post

    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
  7. Plamen
    Admin
    Plamen avatar
    2733 posts

    Posted 27 Feb 2015 Link to this post

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