Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using a
telerik:RadAutoCompleteBox
control in one of my WPF project. When I type something on it, the cursor displays at the beginning of the textbox and the typed text displays in reverse order. FOr example, if I type "ABC", the control displays it as "CBA" and the cursor will be positioned before the character 'A'. Please suggect me how can I fix this issue.

What I have tried:

HTML
<telerik:RadAutoCompleteBox Name="Sec4AutoCompleteBox" 
                                                                                IsEnabled="{Binding IsLine4Editmode,UpdateSourceTrigger=PropertyChanged}"  HorizontalContentAlignment="Left" VerticalContentAlignment="Center"
                                                                                FontFamily="Arial" Foreground="#525252"
                                                                                Margin="0,0,0,5" FontSize="16" FontWeight="Bold"
                                                                                MinHeight="26" MaxHeight="30"  Width="450"
                                                                                BorderThickness="1"
                                                                                BorderBrush="LightGray"
                                                                                SelectionMode="Single"
                                                                                telerik:StyleManager.Theme="Windows8"
                                                                                AutoCompleteMode="Suggest"
                                                                                SearchText="{Binding Sec4MeetAtText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                                                                SelectedItem="{Binding Sec4MeetAt, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                                                                ItemsSource="{Binding Sec4Location}"   >
                                                        <telerik:RadAutoCompleteBox.TextBoxStyle>
                                                            <Style TargetType="TextBox"   BasedOn="{StaticResource TextBoxStyle}">
                                                                <Setter Property="MaxLength" Value="30"/>
                                                            </Style>
                                                        </telerik:RadAutoCompleteBox.TextBoxStyle>
                                                    </telerik:RadAutoCompleteBox>
Posted
Updated 8-Nov-17 22:36pm
v2

1 solution

It seems if not in the UI, in code behind probably you have set the text direction to RTL (Right to Left).
Check something like following in your code and remove it.
C#
RadTextBox1.Attributes["dir"] = "rtl";


Please let me know if this is not the case for you.

Hope, it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900