Right to Left support in DragAndDrop

2 posts, 0 answers
  1. MN Zandi
    MN Zandi avatar
    1 posts
    Member since:
    Dec 2009

    Posted 06 Nov 2010 Link to this post

    I'm new with Telerik controls and am testing the demo Telerik WPF controls.
    I have a problem with Right To Left support:

    I create a new "Rad Control Browser Application" project. Then in "Page1" page, set it's FlowDirection property to "RightToLeft", then I place a button in this page, and in it's click event instantiate a RadWindow inherited control.
    In this window I try to place some drag and drop samples. For example I place two tree with IsDragDropEnabled sets to true (It's not matter, I also test samples provided with WPF controls).
    The problem is here:
    When the FlowDirection property of the page is "LeftToRight" all things works well, but when this property is set to "RightToLeft", If I drag somthing for example from right to left it will move in opposite direction from left to right.

    Note that I change the page's FlowDirection property, not the window. when I just change the window FlowDirection property all things are well. The problem is from page's FlowDirection property.

    Sorry for my bad English. :)

    Here is my source codes, please see these if my explanation is confusing.
    I will attach an image of the result.

    <Page x:Class="RadControlsWpfBrowserApp1.Page1"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" mc:Ignorable="d"
          d:DesignHeight="300" d:DesignWidth="300"
          Title="Page1" FlowDirection="RightToLeft">
            <Controls:RadButton Content="Open the window" Width="100" Height="40" Click="RadButton_Click" />

    using System.Windows;
    using System.Windows.Controls;
    namespace RadControlsWpfBrowserApp1
        /// <summary>
        /// Interaction logic for Page1.xaml
        /// </summary>
        public partial class Page1 : Page
            public Page1()
            private void RadButton_Click(object sender, RoutedEventArgs e)
                var page = new RadWindow1();

    <telerik:RadWindow x:Class="RadControlsWpfBrowserApp1.RadWindow1"
            Header="RadControlsScenario1" Height="300" Width="300" WindowStartupLocation="CenterOwner">
            <telerik:RadTreeView Name="LeftRadTreeView" Margin="10" IsDragDropEnabled="True" BorderBrush="Black" BorderThickness="1"/>
            <telerik:RadTreeView Name="RightRadTreeView" Margin="10" IsDragDropEnabled="True" BorderBrush="Black" BorderThickness="1" Grid.Column="1"/>

    using System.Collections.Generic;
    namespace RadControlsWpfBrowserApp1
        /// <summary>
        /// Interaction logic for RadWindow1.xaml
        /// </summary>
        public partial class RadWindow1
            public RadWindow1()
                var items = new List<string>()
                RightRadTreeView.ItemsSource = items;

    So, Any Ideas?

  2. Tsvyatko
    Tsvyatko avatar
    858 posts

    Posted 10 Nov 2010 Link to this post

    Hello MN Zandi,

    Since our Q3 release we have introduced Native drag mode (by EnableNativeDrag property to RadDragAndDropManager)  which supports right to left support.

    Please, have a look and let me know if this works for you.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top