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

RightToLeft and RadContextMenu problem

1 Answer 39 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dalibor
Top achievements
Rank 1
Dalibor asked on 20 Jan 2012, 01:01 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan
Telerik team
answered on 24 Jan 2012, 04:53 PM
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 >>

Tags
Menu
Asked by
Dalibor
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or