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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Wrong SelectedValue

Thread ID:





142398 Jan 31,2019 01:30 PM UTC Feb 1,2019 11:34 AM UTC Xamarin.Forms 1
Tags: SfAutoComplete
Dan Dumitrascu
Asked On January 31, 2019 01:30 PM UTC

The control sets SelectedValue based on DisplayMemberPath instead of ValueMemberPath.

Dhanasekar R [Syncfusion]
Replied On February 1, 2019 11:34 AM UTC

Hi Dan Dumitrascu, 
Greetings from Syncfusion. 
SelectedValue of SfAutoComplete sets the value based on the SelectedValuePath property. If the SelectedValuePath property null, then only it will take the value from DisplayMemberPath.  We have prepared a sample for the same, please download the sample from the link given below. 
Sample linkSfAutoCompleteSample 
In the above sample, we have set the SelectedValuePath property to a collection, so that whenever we select an item from drop down the SelectedValue will get the value from SelectedValuePath. 


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.

Please sign in to access our forum

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon