hi,
at the end of the "SuggestionItemSelected" event i want to unfocus AutoCompleteView. but use of AutoCompleteView.Unfocus() has no effect on controller, even Unfocused event is not hit. i am doing this because i want to hide Android soft keyboard after user selected suggested item.
1) At Least AutoComplete.HideSuggestions(); should hide Android soft keyboard
2) or at the end of SuggestionItemSelected event soft keyboard should hide
i have used Unfocus() event even in "BeginInvokeOnMainThread"
Hide Android soft keyboard is my main concern, only tested in Android.
private
void
AutoComplete_SuggestionItemSelected (
object
sender, Telerik.XamarinForms.Input.AutoComplete.SuggestionItemSelectedEventArgs e)
{
AutoComplete.Text =
""
;
AutoComplete.HideSuggestions();
AutoComplete.Unfocus();
}
5 Answers, 1 is accepted
Thank you for the provided code.
I have tested the described scenario and I reproduced the issue with the AutoCompleteView Unfocused event. It seems that when the Unfocus is called the event is not firing.
I have logged an issue on your behalf in our Feedback portal and you could follow the item on the provided link below:
https://feedback.telerik.com/xamarin/1385905-autocompleteview-unfocused-event-is-not-raised
You can find your Telerik points updated for bringing this to our attention. Currently, I could not suggest any suitable workaround on this.
Let me know if you have any additional questions.
Regards,
Didi
Progress Telerik
hi,
any do we have any workaround for unfocus autocomplete ?
I am afraid, I could not find any feasible workaround for this issue. In this case, I could suggest you to follow the item in order to receive an email notification when there is any progress on it.
Regards,
Didi
Progress Telerik
Currently the status of the issue is "In Development" and a fix for it will be included in the minor release expected at the end of this week. Please follow the feedback item in order to receive an email notification when its status change to "Completed".
Regards,
Didi
Progress Telerik
Hi,
the same issue for maui AutoComplete, is there workaround for unfocus autocomplete ?
Hi Aram,
I have tested the scenario and Telerik .NET MAUI AutoComplete Unfocused even it fired. Also calling the Unfocus() for example on a button click also unfocused the control.
Could you please send the exact implementation you have, so I can research the case further? Also on which platform the behavior happens?
Note that this forum thread is for Xamarin AutoCompleteView control and the issue is fixed. I would like to ask you to submit all questions you have related to Telerik .NET MAUI controls in the Telerik .NET MAUI forum page or opening a support ticket.