RadComboBox - Selected text de-selects itself on first click

2 posts, 0 answers
  1. Craig
    Craig avatar
    4 posts
    Member since:
    Feb 2019

    Posted 29 Jul 2019 Link to this post

    We seem to have found an odd behavior with the RadComboBox.

     

    Using a RadComboBox where IsEditable="true", if a user clicks the visible text of the currently selected item, the expectation is for the entire text to get automatically selected, so that new text may be entered in its place.  What happens instead is that the entire text is momentarily selected, and the text selection disappears when the user releases the mouse button, instead leaving the text cursor in the position where the mouse was clicked.

    While trying to recreate the issue, we've found:

    • The problem only occurs on the first click.  If clicking off the RadComboBox to another control and then clicking back, the entire text gets selected and stays selected as expected.
    • The problem only occurs when clicking within the visible text.  If clicking the blank space between the text and the dropdown arrow, the entire text selects and stays selected.

    Is this a known bug, or am I simply overlooking a property with the RadComboBox?  It does seem like a change in behavior from the last version we used (around 2011).

  2. Craig
    Craig avatar
    4 posts
    Member since:
    Feb 2019

    Posted 29 Jul 2019 in reply to Craig Link to this post

    I fixed it myself.

    Turns out setting  SelectAllTextEvent="GotFocus"  gives me the desired behavior.  Unsure why the default setting "All" doesn't produce the same outcome.

    Thanks anyway.

Back to Top