dotvvm icon indicating copy to clipboard operation
dotvvm copied to clipboard

ListBox multiple item selection

Open Mylan719 opened this issue 3 years ago • 1 comments

Currently in DotVVM there is no support for native HTML input <select multiple>...</select> We do have <dot:ListBox> control but it does not support multiple selected items. ASP.NET Web Forms has <ListBox SelectionMode="Multiple"> that can be used in this case.

I implemented SelectionMode property for our <dot:ListBox>.

Mylan719 avatar Aug 18 '22 12:08 Mylan719

Sorry, I found out we already have MultiSelect component. It's most likely somehow broken, but I'd prefer to have the functionality as a separate component instead of switching the behavior with the SelectionMode property. It's value influences the expected type of other properties, I'd like to like to avoid that. Would you mind to transfer your code to the MultiSelect component?

exyi avatar Sep 27 '22 20:09 exyi

We should reuse some parts of this implementation (ValidateUsage and tests for example).

acizmarik avatar Oct 26 '22 10:10 acizmarik

Merged via #1521

exyi avatar Dec 08 '22 18:12 exyi