2 directions, 1 radMenu

4 posts, 0 answers
  1. Christian
    Christian avatar
    64 posts
    Member since:
    Apr 2008

    Posted 09 Mar 2009 Link to this post

    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?
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Mar 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. G
    G avatar
    4 posts
    Member since:
    Apr 2009

    Posted 13 Apr 2009 Link to this post

    This is good however the code only apears to work for IE and not FireFox or Opera?
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 14 Apr 2009 Link to this post

    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.
Back to Top