AutoCompleteView.Unfocus not fire Unfocused event

6 posts, 0 answers
  1. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 01 Feb Link to this post

    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();
                      
           }
  2. Didi
    Admin
    Didi avatar
    235 posts

    Posted 01 Feb Link to this post

    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
  3. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 01 Feb in reply to Didi Link to this post

    hi,

    any do we have any workaround for unfocus autocomplete ?

  4. Didi
    Admin
    Didi avatar
    235 posts

    Posted 01 Feb Link to this post

    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
  5. developer1
    developer1 avatar
    1 posts
    Member since:
    Dec 2018

    Posted 29 May Link to this post

    Same problem. Anyone knows when it will be fixed?
  6. Didi
    Admin
    Didi avatar
    235 posts

    Posted 29 May Link to this post

    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
Back to Top