Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DropdownList - Clear Selected Items #5205

Open
MikaelHild opened this issue Dec 28, 2023 · 4 comments
Open

DropdownList - Clear Selected Items #5205

MikaelHild opened this issue Dec 28, 2023 · 4 comments
Labels
Type: Feature ⚙ Request or idea for a new feature.

Comments

@MikaelHild
Copy link

First off, great work!

I've a case where a user might select many items, or where some items have been selected by default.
In case there are ~5+ selected items, I'd like the user to be able to clear the selected items so that the multi-selection can be re-done.

I tried to re-bind the Data, but this does not redraw/update the check components of the dropdownlist.
So if the selectedValues list is cleared, the items remain checked and once an item is checked, the SelectedValuesChanged event is triggered and set's the selectedValues to it's initial/previous state.

A proposal is to expose a Clear method or similar for the selectedValues, or if it could be solved by using a List instead of a ReadOnlyList for the SelectedValues?

@MikaelHild MikaelHild added the Type: Feature ⚙ Request or idea for a new feature. label Dec 28, 2023
@David-Moreira
Copy link
Contributor

Actually I believe this PR #5187 will fix your problem by being able to set SelectedValues.

@stsrki Has this been released yet? What's the ETA?

@stsrki
Copy link
Collaborator

stsrki commented Dec 28, 2023

Yes, it is already released. See https://blazorise.com/news/release-notes/134

@David-Moreira
Copy link
Contributor

User did not clarify version. Have we released for 1.4 yet?

@stsrki
Copy link
Collaborator

stsrki commented Dec 28, 2023

User did not clarify version. Have we released for 1.4 yet?

1.4.1 is still unreleased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature ⚙ Request or idea for a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants