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
close icon

SfComboBox: How to set a placeholder text?

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

1 Reply

HM Hemalatha Marikumar Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon