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

2 directions, 1 radMenu

3 Answers 61 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 09 Mar 2009, 04:53 PM
Hi,

Has anyone managed to have 2 different "alignments" on a radmenu?

what i want to do is create a horisontal menu with the navigation aligned to the left and then i would like a dropdown and a label aligned to the right on the menu to choose language and show who´s logged in.

for example, (might not show up corretly in the forum)

Home | Company | Contact            (space)                     Logged in as: Username | Dropdown

I have tried several things, using 2 menu objects dident do it, when changing between skins (the site will have different skins set by the user) i got bad breakings, mis-alignment, size and height issues on the menu that holds the dropdown etc.

does anyone have an idea?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 11 Mar 2009, 02:47 PM
Hi Christian,

You can find attached a sample page demonstrating the needed approach.

Kind regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
G
Top achievements
Rank 1
answered on 13 Apr 2009, 06:40 PM
This is good however the code only apears to work for IE and not FireFox or Opera?
0
Yana
Telerik team
answered on 14 Apr 2009, 11:33 AM
Hello there,

Please try to modify clientLoad method like this:

<script type="text/javascript">  
        function clientLoad(sender)  
        {  
            var node = sender.findItemByText("right 1");  
            node.get_element().style.cssText="float: right";  
            var node2 = sender.findItemByText("right 2");  
            node2.get_element().style.cssText="float: right";  
        }  
</script> 

Greetings,
Yana
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Christian
Top achievements
Rank 1
Answers by
Yana
Telerik team
G
Top achievements
Rank 1
Share this question
or