Radautocompletebox以相反的顺序显示输入的文本 [英] Radautocompletebox displays entered text in reverse order

查看:94
本文介绍了Radautocompletebox以相反的顺序显示输入的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在我的一个WPF项目中使用

Hi,
I am using a

telerik:RadAutoCompleteBox

控件。当我在其上键入内容时,光标显示在文本框的开头,键入的文本以相反的顺序显示。例如,如果我输入ABC,控件将其显示为CBA,光标将位于字符A之前。请告诉我如何解决这个问题。



我尝试了什么:



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:

<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>

推荐答案

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.

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.
RadTextBox1.Attributes["dir"] = "rtl";





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



Hope, it helps :)



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

Hope, it helps :)


这篇关于Radautocompletebox以相反的顺序显示输入的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆