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 populate the items dynamically in suggestionlist in SfAutoComplete

Auto complete provides support for populating the items dynamically in suggestion list.

 

To populate the items dynamically in suggestion list:

 

Step 1:   Add the required assemblies to get the view of AutoComplete.

Step 2: Provide a method in which you load the items to add in suggestion list, dynamically.

Step 3: Call that method inside the value changed event so that value in the suggestion list be updated whenever the change occurs in the entered value.

 

The following code illustrates how to achieve this method.

 

XAML code:

 

 

Code behind code:

 

 

 

Code behind ViewModel code:

 

 

 

 

Image after the Value gets updated dynamically:

 

 

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8509 02/28/2018 02/28/2018 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.