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

How to reset TextBox after cancelling filtering

3 Answers 104 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 28 Dec 2012, 06:05 PM

I have a RadCombox with IsFilteringEnabled =True and CanAutocompleteSelectItems = False
When I open the drop down, I can starting typing in the text box to filter the listing but nothing is selected until I press enter. If I decide to cancel the filtering by closing the drop down, the text that I typed stilled remains.

How can I get the text to revert back to the selected item?
I tried UpdateTarget in the code-behind but since the selection has not changed, this had no affect.

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 03 Jan 2013, 10:02 AM
Hello David,

I have tested the described scenario and really the text remains when the dropdown is closed with the arrow button, but it is reverted to the SelectedItem as soon as the ComboBox loses the focus.  Is this the same behavior as in your case?

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
David
Top achievements
Rank 1
answered on 05 Jan 2013, 07:18 AM
Yes, that is the same behavior.
0
Yana
Telerik team
answered on 07 Jan 2013, 09:36 AM
Hello David,

Actually this is the expected behavior - the value in the input field of the ComboBox is updated when it loses the focus.  I am afraid that there is no easy way to workaround it.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ComboBox
Asked by
David
Top achievements
Rank 1
Answers by
Yana
Telerik team
David
Top achievements
Rank 1
Share this question
or