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

RadMenu is upside down

9 Answers 125 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Victoria F
Top achievements
Rank 1
Victoria F asked on 16 Dec 2010, 12:06 AM
  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.

9 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 16 Dec 2010, 04:15 PM
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
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 17 Dec 2010, 11:08 AM
Hi Victoria,

did this help? If so please remember to amrk as answer. If you need more assistance, just let me know
Thanks
Richard
0
Victoria F
Top achievements
Rank 1
answered on 17 Dec 2010, 05:02 PM
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.
0
Richard Slade
Top achievements
Rank 2
answered on 17 Dec 2010, 05:07 PM
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
0
Victoria F
Top achievements
Rank 1
answered on 17 Dec 2010, 08:52 PM
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.
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 17 Dec 2010, 10:06 PM
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
0
Victoria F
Top achievements
Rank 1
answered on 17 Dec 2010, 10:42 PM
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.
0
Richard Slade
Top achievements
Rank 2
answered on 17 Dec 2010, 10:58 PM
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
0
Ivan Todorov
Telerik team
answered on 22 Dec 2010, 02:37 PM
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.
Tags
Menu
Asked by
Victoria F
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Victoria F
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or