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

Right To Left problem in RadMenu

1 Answer 124 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Delphi Developer
Top achievements
Rank 1
Delphi Developer asked on 16 Feb 2008, 11:34 PM
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.

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 18 Feb 2008, 08:30 AM
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
Tags
Menu
Asked by
Delphi Developer
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or