I will go straight yo your issues. The observed by you behavior of RadAutoCompleteBox is caused when the control does not get populated as expected inside the GotFocus
event. So, what you need to do is when the Populate method gets called inside the GotFocus
event you need first to check if the DropDown is not opened, as shown below:
sender, RoutedEventArgs e)
var autoCompleteBox = sender
About your second issues concerning the Tab selection. What we could suggest in order to prevent the item to be selected when tab gets pressed and the DropDown is open is to handle the PreviewKeyDown
event of the control and implement the following logic:
sender, KeyEventArgs e)
var box = (RadAutoCompleteBox)sender;
(e.Key == Key.Tab && box.IsDropDownOpen)
var textBox = box.ChildrenOfType<RadWatermarkTextBox>().FirstOrDefault();
So, basically when the tab key is pressed and the DropDown is opened the focus will be moved to the next UIElement.
Hope this helps.
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?
Telerik Feedback Portal
and vote to affect the priority of the items