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

AutoCompleteView.Unfocus not fire Unfocused event

5 Answers 249 Views
AutoCompleteView
This is a migrated thread and some comments may be shown as answers.
Shalin
Top achievements
Rank 1
Shalin asked on 01 Feb 2019, 07:41 AM

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

Sort by
0
Didi
Telerik team
answered on 01 Feb 2019, 09:06 AM
Hi Shalin,

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
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
Shalin
Top achievements
Rank 1
answered on 01 Feb 2019, 10:19 AM

hi,

any do we have any workaround for unfocus autocomplete ?

0
Didi
Telerik team
answered on 01 Feb 2019, 11:48 AM
Hi Shalin,

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
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
developer1
Top achievements
Rank 1
answered on 29 May 2019, 08:05 AM
Same problem. Anyone knows when it will be fixed?
0
Didi
Telerik team
answered on 29 May 2019, 08:24 AM
Hi Sara,

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
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
Aram
Top achievements
Rank 1
commented on 03 Feb 2023, 04:37 PM

Hi,

the same issue for maui AutoComplete, is there workaround for unfocus autocomplete ?

 

Didi
Telerik team
commented on 06 Feb 2023, 08:49 AM

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.

 

Tags
AutoCompleteView
Asked by
Shalin
Top achievements
Rank 1
Answers by
Didi
Telerik team
Shalin
Top achievements
Rank 1
developer1
Top achievements
Rank 1
Share this question
or