This is a migrated thread and some comments may be shown as answers.

Change selected value template

1 Answer 290 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
khashayar
Top achievements
Rank 1
Veteran
khashayar asked on 15 Jun 2020, 08:45 AM
Hello,

i was looking for a way to change the selected drop down item template
like in the picture when i select a country i want to show the flag where KY right now is 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 Jun 2020, 09:11 AM

Hello,

You can use the ValueTemplate for that: https://docs.telerik.com/blazor-ui/components/dropdownlist/templates#value-template.

If you are facing an issue with this, please post here the modified sample from the demo that showacases it, so we can both run it and ensure we're on the same page.

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
DropDownList
Asked by
khashayar
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Share this question
or