OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.31k stars 2.36k forks source link

Add select/deselect all option to the ContentPickerField and UserPickerField #10942

Closed MikeAlhayek closed 2 years ago

MikeAlhayek commented 2 years ago

Is your feature request related to a problem? Please describe.

Sometimes, the user need to select all items in the menu "10+". Currently, it requires the user to click and select 10+ times to select all options. very tedious and not friendly use case.

Describe the solution you'd like

I think the standard ContentPickerField and UserPickerField are great. But I a button to allow the user to select and select all can be very handy in many cases. Also, it would be nice to be able to manually set the selected option. For example, if I want my page to manually set the selected values using Javascript. I should be able to set the selected values using the JavaScript after the page is loaded manually using JS.

Describe alternatives you've considered

Nothing yet

hishamco commented 2 years ago

Do we really not have this? I think it is good to add this option

MikeAlhayek commented 2 years ago

Another thing would be nice from the user experience is to also add a check mark on the right side of the selected items on the menu itself. This would tell the user if an option is already selected when the menu is open. Like if the user want to select 5 options, then close the menu and open it again, it's nice to indicate which 5 he/she already selected.

Also, when the menu does not allow multiple selections, instead of disabling the "Type to search" a better options may be

  1. enable the "Type to search", but replace existing selection each time the user select a new one.
  2. Or, hide the "Type to search" bar to reduce the clutter on the screen as it adds no value being disabled.

image

deanmarcussen commented 2 years ago

This would be misleading to a user.

the pickers return 50 by default and more when searching. So select all, couldn’t actually mean all, always, as it depends on the number of items returned, and visible

suggest you implement your own editor mode, if you want this.

Check mark to indicate already selected seems like a good idea for improvement.

sebastienros commented 2 years ago

Too risky, you could add a reference to so many items ...