RadzenDropdown ValueTemplate support when Multiple is true #855

Closed
opened 2026-01-29 17:45:20 +00:00 by claunia · 2 comments
Owner

Originally created by @MiloCDavis on GitHub (May 22, 2023).

The ValueTemplate feature of the RadzenDropdown is very nice when working with single selection. The Template or TextProperty will be reflected in the popup options, and the ValueTemplate will show in the input box when a selection is made. When set to multiple selection however, the ValueTemplate has no effect. I have a list of objects with a Name property and a Letter property, and what I'd like to achieve is a multiple, chips dropdown that displays the names as the options, and the letters as the selections.

Originally created by @MiloCDavis on GitHub (May 22, 2023). The ValueTemplate feature of the RadzenDropdown is very nice when working with single selection. The Template or TextProperty will be reflected in the popup options, and the ValueTemplate will show in the input box when a selection is made. When set to multiple selection however, the ValueTemplate has no effect. I have a list of objects with a Name property and a Letter property, and what I'd like to achieve is a multiple, chips dropdown that displays the names as the options, and the letters as the selections.
Author
Owner

@enchev commented on GitHub (May 23, 2023):

You can use Template for that:
image

image

Here is the same with chips:
image

@enchev commented on GitHub (May 23, 2023): You can use `Template` for that: ![image](https://github.com/radzenhq/radzen-blazor/assets/5804953/2cba7bef-fc2b-42fa-8c51-936dc4b6a063) ![image](https://github.com/radzenhq/radzen-blazor/assets/5804953/0c168c10-0696-476e-a4aa-60c317f749b2) Here is the same with chips: ![image](https://github.com/radzenhq/radzen-blazor/assets/5804953/e5b6df49-d10a-4956-b4dc-a83449c3f1a8)
Author
Owner

@MiloCDavis commented on GitHub (May 23, 2023):

Yes, but there the options listed in the popup are the same as the selections in the box. I'm talking about it being separate as can be achieved with the single selection dropdowns, i.e. so it doesn't say "Product: Chai" in two places.

image

@MiloCDavis commented on GitHub (May 23, 2023): Yes, but there the options listed in the popup are the same as the selections in the box. I'm talking about it being separate as can be achieved with the single selection dropdowns, i.e. so it doesn't say "Product: Chai" in two places. ![image](https://github.com/radzenhq/radzen-blazor/assets/36829918/32d7cbae-2a52-4586-8b5f-16050c9299b9)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#855