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

How to display e-template when element is selected

Thread ID:





130928 Jun 12,2017 08:37 AM UTC Jun 12,2017 12:37 PM UTC AngularJS 1
Tags: ejDropdownList
Karol Wlodarek
Asked On June 12, 2017 08:37 AM UTC

I have a question about your ejDropdownList control. 
How can I display my e-template on selected element.
Below I enclose two screenshots.

scope.eTemplate =
'<div>' +
     '<i class="fa ${cssClass}"></i> ' +
     '&nbsp; ${text}' +

Best regards,

Prince Oliver [Syncfusion]
Replied On June 12, 2017 12:37 PM UTC

Hi Karol, 

Thank you for contacting Syncfusion support. 

By default, the DropDownList displays only the text of the data item. To image along with the text  we need to customize the selected data to show the custom visual element in the DropDownList’s input element. Kindly refer to the following UG 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 

We have prepared a sample as per your requirement. Kindly refer to the following Playground sample: http://jsplayground.syncfusion.com/szmbt3n3 



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