New to Telerik UI for Xamarin? Download free 30-day trial

RadAutoComplete control has been replaced with RadAutoCompleteView and will be removed from the suite soon. You can read about the differences between both components and how to migrate to the new RadAutoCompleteView in the kb article here: Replace AutoComplete with AutoCompleteView

Register the AutoComplete renderer

With R2 2017 release of Telerik UI for Xamarin you do not need to manually define control renderers. The following instructions are valid for versions prior R2 2017.

Android Project

You have to add the following line to the MainActivity.cs file outside the scope of the namespace just after the using statements:


[assembly: ExportRenderer(typeof(Telerik.XamarinForms.Input.RadAutoComplete), typeof(Telerik.XamarinForms.InputRenderer.Android.AutoCompleteRenderer))]

iOS Project

You have to add the following line to the AppDelegate.cs file outisde the scope of the namespace just after the using statements:


[assembly: ExportRenderer(typeof(Telerik.XamarinForms.Input.RadAutoComplete), typeof(Telerik.XamarinForms.InputRenderer.iOS.AutoCompleteRenderer))]

You also have to create an instance of the renderer in the FinishedLaunching(...) method before the Forms.Init() call and right after it call the TelerikForms.Init().


public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
    new Telerik.XamarinForms.InputRenderer.iOS.AutoCompleteRenderer();

    Xamarin.Forms.Forms.Init();
    Telerik.XamarinForms.Common.iOS.TelerikForms.Init();

    this.LoadApplication(new App());

    return base.FinishedLaunching(app, options);
}

UWP Project

You have to add the following line to the MainPage.xaml.cs file outisde the scope of the namespace just after the using statements:


[assembly: Xamarin.Forms.Platform.UWP.ExportRenderer(typeof(Telerik.XamarinForms.Input.RadAutoComplete), typeof(Telerik.XamarinForms.InputRenderer.UWP.AutoCompleteRenderer))]

Windows 8.1 and Windows Phone 8.1 Projects

You have to add the following line to the MainPage.xaml.cs file outisde the scope of the namespace just after the using statements:


[assembly: Xamarin.Forms.Platform.UWP.ExportRenderer(typeof(Telerik.XamarinForms.Input.RadAutoComplete), typeof(Telerik.XamarinForms.InputRenderer.UWP.AutoCompleteRenderer))]

Windows Phone 8 Project

AutoComplete is not available for WindowsPhone 8.0

See Also

In this article