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

RadComboBox - Selected text de-selects itself on first click

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 29 Jul 2019, 05:52 PM

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

1 Answer, 1 is accepted

Sort by
0
Craig
Top achievements
Rank 1
answered on 29 Jul 2019, 06:12 PM

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.

Tags
General Discussions
Asked by
Craig
Top achievements
Rank 1
Answers by
Craig
Top achievements
Rank 1
Share this question
or