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.

Show icons / image in DropDownList field problem

Thread ID:

Created:

Updated:

Platform:

Replies:

131972 Aug 6,2017 10:32 AM Aug 7,2017 05:13 AM ASP.NET MVC 1
loading
Tags: DropDownList
Paul Kocher
Asked On August 6, 2017 10:32 AM

Hi!

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 05:13 AM

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 

Regards, 
Prince 


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.

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.

;