text scrolled to the right by default, should be to the left

3 posts, 0 answers
  1. Kjell
    Kjell avatar
    274 posts
    Member since:
    Jun 2010

    Posted 23 Jul 2010 Link to this post

    Kind of a nitpicky issue but when the text in a combo box is longer than the box itself, the end of the text is shown.  I am being asked to display the beginning of the text.

    For example if the text is  "abcdef" and the combobox is wide enough to display only 3 characters, currently it will show "def", but we want it to show "abc".

    I dont know if this matters but the combobox is in a gridview column. Here is the code for it:

     <telerik:GridViewDataColumn Header="Client" Width="160" SortMemberPath="ClientNum" DataMemberBinding="{Binding LearnClient}" TextAlignment="Left"
                                <Style TargetType="telerik:GridViewCell">
                                    <Setter Property="Template">
                                            <ControlTemplate TargetType="telerik:GridViewCell">
                                                <telerik:RadComboBox x:Name="radClientCombo" IsFilteringEnabled="True"   GotFocus="RadClientBox_GotFocus" Height="20" VerticalAlignment="Top"
                                                                     CanKeyboardNavigationSelectItems="True" Text="{Binding LearnClient}" IsEditable="True" />
  2. Valeri Hristov
    Valeri Hristov avatar
    2252 posts

    Posted 26 Jul 2010 Link to this post

    Hello Kjell,

    The text is scrolled to the right because when you focus RadComboBox it selects all of its text. To prevent the selection you could set the SelectAllTextEvent property to None:

    <telerik:RadComboBox SelectAllTextEvent="None" ... />

    Valeri Hristov
    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
  3. DevCraft R3 2016 release webinar banner
  4. Kjell
    Kjell avatar
    274 posts
    Member since:
    Jun 2010

    Posted 26 Jul 2010 Link to this post

    yup that worked, thanks!
Back to Top