Right To Left problem in RadMenu

2 posts, 0 answers
  1. Delphi Developer
    Delphi Developer avatar
    2 posts
    Member since:
    May 2006

    Posted 16 Feb 2008 Link to this post

    Hi there.
    RadMenu has problems when page is in RTL mode with setting dir=rtl in <body> or <html> elements. the problem is that RadMenu minimizes to left border of the page when mouse cursor leaves RadMenu.
    This problem does not exist when page is in LTR mode and RadMenu is set to RTL itself.
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2809 posts

    Posted 18 Feb 2008 Link to this post

    Hi,

    Thank you for reporting this issue. We have managed to fix it and the fix will be included in the next service pack.
    Until it is out, you should add the following script to your page that will resolve the issue:

    <script type="text/javascript"
        Sys.Application.add_init(function() 
        { 
            var oldHandler = Telerik.Web.UI.RadMenuItem.prototype._onCollapseAnimationEnded; 
             
            Telerik.Web.UI.RadMenuItem.prototype._onCollapseAnimationEnded = 
                function (sender, e) 
                { 
                    oldHandler.call(this, sender, e); 
                     
                    if (this.get_level() == 0) 
                    { 
                        var menuElement = this.get_menu().get_element(); 
                        menuElement.style.cssText = menuElement.style.cssText; 
                    } 
                } 
        }) 
    </script> 


    Sincerely yours,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top