RightToLeft and RadContextMenu problem

2 posts, 1 answers
  1. Dalibor
    Dalibor avatar
    9 posts
    Member since:
    Oct 2011

    Posted 20 Jan 2012 Link to this post

    Hi Telerik,
    I have RadContextMenu which is opened for Click event of Button. Works fine.

    But if I change FlowDirection to RightToLeft then RadContextMenu is opened somewhere outside of browser area and it is not visible.
    This is a code which does not work.
    <UserControl x:Class="COntextMenuRightToLeft.MainPage"
                 FlowDirection="RightToLeft"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                 mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
       <Grid>
          <Grid.RowDefinitions>
             <RowDefinition Height="Auto" />
             <RowDefinition Height="*" />
          </Grid.RowDefinitions>
          <Grid.ColumnDefinitions>
             <ColumnDefinition Width="Auto" />
             <ColumnDefinition Width="*" />
          </Grid.ColumnDefinitions>
          <Button Content="Add" Width="32" Height="32" Grid.Row="0" Grid.Column="0">
             <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu EventName="Click">
                   <telerik:RadMenuItem Header="Add" />
                   <telerik:RadMenuItem Header="Edit" />
                   <telerik:RadMenuItem Header="Delete" />
                </telerik:RadContextMenu>
             </telerik:RadContextMenu.ContextMenu>
          </Button>
       </Grid>
    </UserControl>
    Could you have a look?
    Best regards,
    Dalibor
  2. Answer
    Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 24 Jan 2012 Link to this post

    Hi,

    We are aware of this problem, the popup is not calculating correctly its position when RightToLeft is set. We are currently working on improving the RightToLeft support for all our controls that have popups. This will be fixed for Q1 which is due in the middle of February. Hope this works for you.

    Don't hesitate to contact us if you have other questions.


    All the best,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top