Customizing the Return Key in SFAutoComplete

Hi,
Is it possible to Customize the keyboard Return Key in SFAutoComplete like it's possible with the Xamarin.Forms Entry control?
Thanks,
Sasko

7 Replies

PA Paul Anderson S Syncfusion Team August 7, 2018 10:19 AM UTC

Hi Sasko, 
  
Thank you for using Syncfusion products. 
  
We are not clear with your exact requirement with the SfAutoComplete contol customization with the Return Key. Can you please provide additional information on which platform you would like to customize and in what terms the button needs to be customized which will help us check on it and provide you a better solution. 
  
Regards, 
Paul Anderson 



SM Sasko Mateski August 7, 2018 01:00 PM UTC

Hi,

The Xamarin.Forms Entry control has a ReturnType property which can be set to one of the ReturnType enum values:
  • Default – indicates that no specific return key is required and that the platform default will be used.
  • Done – indicates a "Done" return key.
  • Go – indicates a "Go" return key.
  • Next – indicates a "Next" return key.
  • Search – indicates a "Search" return key.
  • Send – indicates a "Send" return key.
with the intention of customizing the appearance of the return key on the soft keyboard.

I'm interested in achieving this with the soft keyboard shown when the SFAutoComplete control has focus, on the Android platform.

Regards,
Sasko Mateski


PA Paul Anderson S Syncfusion Team August 9, 2018 12:37 PM UTC

Hi Sasko, 
 
We can achieve your requirement of customizing the Return button of the softkeyboard in SfAutoComplete using the CustomRenderer as shown below. 
 
protected override void OnElementChanged(ElementChangedEventArgs<SfAutoComplete> e) 
        { 
            base.OnElementChanged(e); 
            if (Control != null) 
            { 
                Control.GetAutoEditText().ImeOptions = Android.Views.InputMethods.ImeAction.Send; 
            } 
        } 
 
We have created a simple sample as per your requirement and it is available in the below link. 
 
 
Regards, 
Paul Anderson 



SM Sasko Mateski August 10, 2018 10:22 AM UTC

Great, thanks for the support.

Regards,
Sasko


PA Paul Anderson S Syncfusion Team August 10, 2018 10:24 AM UTC

Hi Sasko, 
  
We are happy to assist you. 
  
Regards, 
Paul Anderson 



DD Dan Dumitrascu January 4, 2019 10:51 AM UTC

Starting with version 16.4.0.42 we can't inherit SfAutocomplete and create a custom renderer.
It crashes.

Attachment: Screenshot_20190104_at_12.49.46_92b7ea64.zip


DR Dhanasekar R Syncfusion Team January 7, 2019 10:09 AM UTC

We have validated your attached screenshot and we have already fixed this issue. This fix will be included in our upcoming weekly NuGet release which will be rolled out on 8th January 2019.

Regards, 
Dhanasekar 
 


Loader.
Up arrow icon