IsEditable causes text to clip start of item

5 posts, 0 answers
  1. Andrew
    Andrew avatar
    6 posts
    Member since:
    Jan 2011

    Posted 10 May 2011 Link to this post

    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.
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 10 May 2011 Link to this post

    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
  3. DevCraft banner
  4. Andrew
    Andrew avatar
    6 posts
    Member since:
    Jan 2011

    Posted 10 May 2011 Link to this post

    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.
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 10 May 2011 Link to this post

    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
  6. Andrew
    Andrew avatar
    6 posts
    Member since:
    Jan 2011

    Posted 10 May 2011 Link to this post

    Thanks for the quick response, investigating and making the changes. Looking forward to the release.
Back to Top
DevCraft banner