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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfComboBox: How to set a placeholder text?

Thread ID:

Created:

Updated:

Platform:

Replies:

149026 Nov 12,2019 10:24 AM UTC Nov 13,2019 06:59 AM UTC Xamarin.Forms 1
loading
Tags: SfComboBox
Maria
Asked On November 12, 2019 10:24 AM UTC

Hi,

I am using the SfComboBox control and wanted to set a placeholder text. The overview page shows a placeholder (https://www.syncfusion.com/xamarin-ui-controls/xamarin-combobox) but I can't find the attribute.
Can you tell me how I set it?

Thank you!

Maria

Hemalatha Marikumar [Syncfusion]
Replied On November 13, 2019 06:59 AM UTC

Hi Maria,

Greetings from Syncfusion.

We would like to let you know that the `Placeholder` can be set using the Watermark property in SfComboBox as per in below code snippet. 
 
Code Example [XAML]: 
 
<combobox:SfComboBox HeightRequest="40"
                                              Watermark="Enter 'A' to filter suggestions" />
 
 
We have prepared a simple sample for the same. Please have the sample from the below link, 

Sample Linkhttps://www.syncfusion.com/downloads/support/directtrac/general/ze/PlaceHolder-1678575127 

Please check with the above and let us know if you have any concerns.  
  
Regards, 
Hemalatha M. 


CONFIRMATION

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