RadMenu is upside down

10 posts, 3 answers
  1. Victoria F
    Victoria F avatar
    46 posts
    Member since:
    May 2010

    Posted 15 Dec 2010 Link to this post

    1. I placed RadMenu on my form.
    2. I added 3  radMenuButtonItems 
    3. Set Orientation property of the menu to :Vertical.
    4. Set RootElement TextOrientation to :Vertical
    5. Now my menu is upside down
    What should I do to rotate the menu on 180 degrees?
    Thank you ,
    Victoria.
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 16 Dec 2010 Link to this post

    Hi Victoria,

    Hope you're well today.
    Please can you try this.
    RadMenu1.Orientation = System.Windows.Forms.Orientation.Vertical
    RadMenuButtonItem1.TextOrientation = System.Windows.Forms.Orientation.Vertical
    RadMenuButtonItem1.FlipText = True
    RadMenuButtonItem2.TextOrientation = System.Windows.Forms.Orientation.Vertical
    RadMenuButtonItem2.FlipText = True
    RadMenuButtonItem3.TextOrientation = System.Windows.Forms.Orientation.Vertical
    RadMenuButtonItem3.FlipText = True

    hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Dec 2010 Link to this post

    Hi Victoria,

    did this help? If so please remember to amrk as answer. If you need more assistance, just let me know
    Thanks
    Richard
  5. Victoria F
    Victoria F avatar
    46 posts
    Member since:
    May 2010

    Posted 17 Dec 2010 Link to this post

    Tell the truth I was disappointing yesterday to see that menu's behavior .. I needed it urgently for presentation .. So I decided not to use the menu and put instead 6 buttons.
    Now I have time to try your code example and the menu again .. Thank you , it solved the problem.
    It's a little bit "unusual" that I have to do this only from the code ... and during development all my items still upside down.
    Is it possible to do from the properties or this is a bug and might be fixed in the next version?

    Anyway thank you very much for your help!!!
    Victoria.
  6. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Dec 2010 Link to this post

    Hi Victoria,

    I'm glad it solved your issue. Shame I couldn't get it to you in tiome for your presentation. Hope it went well all the same.

    You can do all this from the properties menu but, the text does not flip until it is in runtime (I.e. - it still looks incorrect at design time)

    Hope that helps
    Richard
  7. Victoria F
    Victoria F avatar
    46 posts
    Member since:
    May 2010

    Posted 17 Dec 2010 Link to this post

    Another question :
    I set text for all buttons in the radMenu. All buttons now have different size , depend on the length of the text. I was playing with AutoSizeMode property,  trying to set it to "FitToAvailableSize". Does not work. Please, help me to solve the simplest problem to make all menu buttons with the same width regardless the text on each of them.
    * Is it also something that can work only from the code?

    Thank you ,
    Victoria.
  8. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Dec 2010 Link to this post

    Hi Victoria,

    Rather than explain setting button sizes, I've made a short Jing video for you. It's really just a case of setting the AutoSize property to false and then setting a width for each one. You can see the mini-video at this link

    I've also noticed that before I did this, I still had your settings from before where FlipText was true, and the buttons were the right way up after I had re-started Visual Studio. This must just be a refreh issue internally with the setting at design time.

    Hope that helps
    Richard
  9. Victoria F
    Victoria F avatar
    46 posts
    Member since:
    May 2010

    Posted 17 Dec 2010 Link to this post

    Thanks a lot ,
    This solution was the best and the easiest.
    1. I created a new radMenu with 3 buttons
    2. Set for each of the button AutoSize to False as you showed in a video.
    3. After this when I start to set a different text for the buttons .. the size was already the same(because initially button's text has the same size)
    4. I selected a radMenu and changed Dock property to NONE. !!!!  It automatically created for me a vertical orientation of the buttons ... So I do not have to set any orientation ..  rotate them or code something..
    Thank you very much for your help ,
    Victoria.
  10. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Dec 2010 Link to this post

    Hi Victoria,

    It's a pleasure to help and I'm glad you have found solutions. Telerik admins will be reading these posts for sure and it will help that you've given such detailed information
    Thanks
    Richard
  11. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 22 Dec 2010 Link to this post

    Hi there,

    I see you guys are doing well.

    @Victoria: The flipping of the text upside down is indeed an inconsistent behavior. The fix will be addressed in some of the next releases. Your Telerik points have been updated for reporting this issue. In regards to the workaround: you could also use the AngleTransform property which rotates the whole item by a specified angle. Here is an example:

    foreach (RadMenuItem item in radMenu1.Items)
    {
        item.AngleTransform = 270;
    }

    @Richard: Thank you for your help and keep up the good work. Your Telerik points have been updated too.

    If you have any further questions, do not hesitate to contact us.

    Regards,
    Ivan Todorov
    the Telerik team
    Check out the Q1 2011 Roadmap for Telerik Controls for Windows Forms.
Back to Top
UI for WinForms is Visual Studio 2017 Ready