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.

How to add the SfAutocomplete control at runtime

SfAutoComplete controls provide a support to bind with different data source dynamically. We can add the data source during run time also.

 

To add Dynamic 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 Button for adding new set of data. In which add new collection of data.

 

The below code illustrates the way to achieve this.

 

 

 

 

 

Image before the data source added dynamically:

 

 

 

 

 

Image to “ADD DATA” to the data source:

 

 

 

 

 

 

 

Image after Data Source get added:

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7607 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

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.