Second level of context menu doesn't display correctly sometimes

2 posts, 0 answers
  1. Roman
    Roman avatar
    25 posts
    Member since:
    Sep 2010

    Posted 15 Mar 2012 Link to this post

    I have context menu with a lot of items in second level(>50).
    I set RadMenuItem.GroupSettings.Height = 200px for all first level items.

    Steps for reproduce:

    Open second level menu items, click anywhere to close menu.
    Do the same second time and you can see that second menu level items display incorrect. the appear under the top of window(few items are not visible).

    How can i know when menu items will display not in bounds of window ?
    How can i control position of second menu level items?
  2. Andrew
    Andrew avatar
    6 posts
    Member since:
    Jul 2011

    Posted 11 Apr 2012 Link to this post

    After much searching I couldn't find a reason or official solution for this "quirk" but did find a workaround which I hope helps others who come across this issue. On my RadMenu I set the OnClientItemOpened property = "OnClientItemOpened" and then that function is as follows:

    function OnClientItemOpened(sender, args) {
        var item = args.get_item();
        item._positionChildContainerBasic();
        if (item._getScrollWrapElement()) item._updateScrollSize();
    }



  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top