RadMenuItem FlowDirection Changes Header Text

3 posts, 0 answers
  1. James
    James avatar
    12 posts
    Member since:
    Jan 2012

    Posted 24 Jul 2013 Link to this post

    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. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 26 Jul 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 26 Jul 2013 Link to this post

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