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

Handle Enter

2 Answers 67 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Joe Bohen
Top achievements
Rank 1
Joe Bohen asked on 11 Sep 2015, 09:12 AM

Hi,

I have an AutoCompleteBox where the selection mode is set to single, I wish to set focus on the next control when the enter key is selected when the AutoCompleteBox has a value selected.  Is this possible?

Regards,

Joe

2 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 15 Sep 2015, 01:32 PM
Hi Joe,

In order to achieve the desired behavior you need to handle the KeyUp event of RadAutoCompleteBox. Inside it you need to check if the currently pressed key is Enter and if there is SelectedItem - if both conditions are fulfilled the focus should be moved to the next UIElement.

We have created a sample project that demonstrates that and you could run and evaluate it.

Hopes this helps.

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Joe Bohen
Top achievements
Rank 1
answered on 18 Sep 2015, 06:57 AM

Hi Nasko,  

Thanks for the solution. 

Regards,

Joe

Tags
AutoCompleteBox
Asked by
Joe Bohen
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Joe Bohen
Top achievements
Rank 1
Share this question
or