We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Clear button

Thread ID:

Created:

Updated:

Platform:

Replies:

124692 Jun 22,2016 11:35 PM Jun 27,2016 01:53 AM Xamarin.Forms 3
loading
Tags: SfNumericTextBox
Atif
Asked On June 22, 2016 11:35 PM

I have successfully achuieved the clear button in iOS but facing trouble to add in Android. Please guide me how can i add the clear button in Android.

This works nice in iOS  
 public class TextboxRenderer : EntryRenderer
    {
        protected override void OnElementChanged (ElementChangedEventArgs<Entry> e)
        {
            base.OnElementChanged (e);

            if (this.Control == null) {
                return;
            }

            var entry = this.Control as UITextField;

            entry.ClearButtonMode = UITextFieldViewMode.WhileEditing;

        }
    }

Hemalatha Marikumar [Syncfusion]
Replied On June 24, 2016 08:16 AM

Hi Atif,

Thanks for contacting Syncfusion support.

Currently there is no direct support for achieving the clear button in Android Entry Control. We cannot provide support for customizing the Xamarin Native control. Please contact Xamarin Support team regarding this support. In Syncfusion we have a similar control named “SfAutoComplete” control which will have a Clear button and suggestions will be listed based on search. Please have the details from the below UG documentation.

Syncfusion UG Link: http://help.syncfusion.com/xamarin/sfautocomplete/getting-started

Xamarin support link with same query :  https://forums.xamarin.com/discussion/32647/entry-with-clear-button 

Regards,
Hemalatha M.R 


Atif
Replied On June 24, 2016 02:43 PM

Thanks and appreciated.

Vignesh V [Syncfusion]
Replied On June 27, 2016 01:53 AM

Hi Atif,

Thanks for the update.

We are glad to help you on this. Please let us know if you have any other query.

Regards,
Vignesh V 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;