Flow direction in RadTreeView issue

0 Answers 74 Views
Localization Styling TreeView
Menna
Top achievements
Rank 1
Menna asked on 06 Dec 2021, 03:57 PM | edited on 08 Dec 2021, 09:43 AM

I use RadTreeView when i change flow direction To Right to left in Arabic language the treeView Display in one level 

like in attached image .

Any help ?

 

Didi
Telerik team
commented on 09 Dec 2021, 01:27 PM

Hi Menna,

I have reproduced the behavior without the usage of TreeView ItemTemplate. I have used this setup: 

<telerikDataControls:RadTreeView  x:Name="treeView" FlowDirection="RightToLeft" Grid.Row="2"
                                  ItemsSource="{Binding Source}">
            <telerikDataControls:TreeViewDescriptor DisplayMemberPath="Name"
                                            ItemsSourcePath="Cities"
                                            TargetType="{x:Type local:Country}"/>
            <telerikDataControls:TreeViewDescriptor DisplayMemberPath="Name" 
                                            TargetType="{x:Type local:City}"/>
</telerikDataControls:RadTreeView>
In order to apply the correct margin you need to implement a LevelToMargin converter

I have attached the xaml and xaml.cs files I used. Please check them. 
This is the result when RightToLeft flow direction is set to the TreeView and LevelToMargin is applied:

No answers yet. Maybe you can help?

Tags
Localization Styling TreeView
Asked by
Menna
Top achievements
Rank 1
Share this question
or