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

Combine selected items into a count

1 Answer 234 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Mark White
Top achievements
Rank 1
Mark White asked on 24 Apr 2020, 01:54 PM
I am wanting to combine all selected items into a "item name" + "number of items selected" format instead of displaying every single item selected in the drop down list. Look at attached picture.

As a side note, having checkboxes would be good too...

1 Answer, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 28 Apr 2020, 11:45 AM

Hi Mark,

Based on the screenshot provided I am not sure whether you are referring to the MultiSelect widget or the DropDownTree widget.

For the MultiSelect you can set the tagMode configuration option to single to render only one tag with the number of selected items. As for adding checkboxes to the MultiSelect widget, you could refer to the HowTo article on creating a custom checkboxes template.

The DropDownTree itself provides a configuration option for enabling checkboxes as well as tagMode configuration. This example demonstrates a DropDownTree with checkboxes and a single tag displayed on selection.

I hope you will find the above information helpful.

Regards,
Aleksandar
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
Mark White
Top achievements
Rank 1
Answers by
Aleksandar
Telerik team
Share this question
or