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

Show icons / image in DropDownList field problem

Thread ID:





131972 Aug 6,2017 02:32 PM UTC Aug 7,2017 09:13 AM UTC ASP.NET MVC 1
Tags: DropDownList
Paul Kocher
Asked On August 6, 2017 02:32 PM UTC


I'm using icons to show flags of countries in a DropDownList.
While this works, I can't get the DropDownList to show the flag in the initial value:

how can I display the image in the first field?

Prince Oliver [Syncfusion]
Replied On August 7, 2017 09:13 AM UTC

Hi Paul, 

Thank you for contacting Syncfusion support. 

To display an image in the dropdownlist when an item is selected, we need to use the select event in the DropDownList and hide the existing input element to display the customized element. Kindly refer to the following UG Documentation link for more information: https://help.syncfusion.com/js/dropdownlist/howto#select-the-image-rather-than-the-text-from-the-dropdownlist-when-the-template-concept-is-used 



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