Hi Pavel,
You can achieve
your requirement by using the below code example.
Find the code
example here:
|
<SfDropDownList
Placeholder="Circuit Notes"
TValue="string"
TItem="string"
DataSource="@notes" TValue="string">
<DropDownListTemplates TItem="string">
<ItemTemplate>
<span><span class='name'>@context</span></span>
</ItemTemplate>
</DropDownListTemplates>
</SfDropDownList>
@code {
private List<string> notes { get; set; } = new List<string> { "test", "test1", "test2" };
}
|
Find the screenshot here:
Regards,
Sureshkumar P