This is a migrated thread and some comments may be shown as answers.

IsEditable causes text to clip start of item

4 Answers 50 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 10 May 2011, 10:22 AM
Normal RadComboBox behaviour has the selected item aligned to the start of the word, clipping the end when it's too long for the ComboBox as I would expect.

When IsEditable is enabled once the user tabs out of the ComboBox the selected item is aligned to the end of the word, clipping the start. This occurs when an item is selected as well as when entered.

Is this the intended behaviour, I would expect that once I have completed selecting/entering an item it would show it from the start.

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 10 May 2011, 10:27 AM
Hi Andrew,

This is the intended behavior - when you change the selection we select all of the text in the TextBox (the standard WPF combobox works in the same way). You can verride this behavior by setting the SelectAllTextEvent property to None.

All the best,
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
0
Andrew
Top achievements
Rank 1
answered on 10 May 2011, 10:48 AM
Indeed, I've just stumbled across that myself and it *almost* does what is required.

We want all text to be selected on GotFocus to enable the user to type & overwrite the existing value after tabbing into the field. This works correctly for all modes (selection via typing, scrolling or clicking) however if the user tabs past the field without changing it, it selects all text, scrolls to the end of the selected item and causes the alignment issue again.

We effectively need a way to set the input text caret position to 0 on lost focus.
0
Valeri Hristov
Telerik team
answered on 10 May 2011, 02:45 PM
Hello Andrew,

I see. I will make the needed changes and the behavior will be updated as per your requirement with the internal build next week.

Best wishes,
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
0
Andrew
Top achievements
Rank 1
answered on 10 May 2011, 02:53 PM
Thanks for the quick response, investigating and making the changes. Looking forward to the release.
Tags
ComboBox
Asked by
Andrew
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or