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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add Collections to AutoComplete

SfAutoComplete controls provide a support to bind with different data source such as IList Data Source, Observable Collection.


To add Data source in autocomplete follow the below given procedure:

Step 1: Create the autocomplete sample with all necessary assemblies.


Step 2: Create an Observable collection where we have to store the data into it. Also create an instance of Observable collection. Set the instance of Observable collection to Autocomplete Data Source.


Step 3: Create a view model class to bind the collection of viewmodel class on the datasource of AutoCompelete.


Step 4: By changing DisplayMemberPath and SelectedValuePath we can achieve the data source.


The below code illustrates the way to achieve this.





The following screenshot shows the output of data source with its SelectedIndex.


Example 1:







Example 2:




Article ID: Published Date: Last Revised Date: Platform: Control:
7605 03/27/2017 04/10/2017 Xamarin.Forms SfAutoComplete
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon