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

RadMenuItem FlowDirection Changes Header Text

2 Answers 110 Views
Menu
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 24 Jul 2013, 04:27 PM
My project uses a RadMenu in the upper-right of the screen.  The menu needs to open from right to left so we use the flow direction "RightToLeft".  When using this flow direction, some header text with punctuation is rearranged.  Consider this example:

<telerik:RadMenu x:Name="radMenu2" ClickToOpen="False" Grid.Column="0" FlowDirection="RightToLeft">
  <telerik:RadMenuItem Name="testMenuItem" Header="Test">
     <telerik:RadMenuItem Header="123.ABC"/>
     <telerik:RadMenuItem Header="123ABC"/>
  </telerik:RadMenuItem>
</telerik:RadMenu>

In this case, when the menu is shown the first menu item will display "ABC.123" instead of "123.ABC".  The second item (without the period) displays fine.

  Other examples: 
  •   "Test_" will display as "_Test"
  •   "(Test" will display as "Test("
  •   "100%Effort" will display as "Effort%100"

 
  For some reason, setting a flow direction of "RightToLeft" will rearrange any text that contains certain special characters.

  Is there a way to stop this reversal of the menuitem header text?

2 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 26 Jul 2013, 02:35 PM
Hi James,

We have tested your scenario with our Menu and the regular one and they both behaved the same way. Unfortunately this is the default WPF behavior when using RightToLeft FlowDirection on the strings which contain number followed by a non-letter symbol and something else after that (their places are switched). Currently we are not aware of any work-around for this behavior.

If you have any other questions let us know.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Hristo
Telerik team
answered on 26 Jul 2013, 03:55 PM
Hi James,

Just a small addition - instead of using RightToLeft you could set HorizontalAlignment=Right. This will place RadMenu on the right of the screen. RadMenuItem has DropDownPlacement property which you can set to Left in order to open its popup from right to left.

Let us know if you need more information.

Regards,
Hristo
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Menu
Asked by
James
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Hristo
Telerik team
Share this question
or