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

Key simulation

1 Answer 63 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Christie Admin
Top achievements
Rank 1
Christie Admin asked on 06 Aug 2014, 06:27 PM
Hi,

I created a usercontrol which contain a RadAutoCompleteBox and a RadButton. When I click on the button, I would like to simulate the ENTER key of the RadAutoCompleteBox to keep the behavior of the ENTER key on the control... How can I do that???

Thank's
Alain

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 11 Aug 2014, 10:39 AM
Hi Alain,

In general, clicking Enter key while typing in the input field of the AutoCompleteBox selects the first filtered item. You could simulate this behavior on button click by getting the FilteredItems of the AutoCompleteBox and add the first item from the collection to the SelectedItems of the control. 

If this is not the case, I'd ask you to explain in more details the scenario and the required result.

I am looking forward to your reply.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
AutoCompleteBox
Asked by
Christie Admin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or