ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

"Sticky" multiselect

Open konrad-garus opened this issue 13 years ago • 15 comments

It would be nice to have a "sticky" multiselect that does not require ctrl or shift, only mouse clicks. If user clicks on a cell, it's selected. If user clicks on another unselected cell, that cell is added to selection (both are selected). If user clicks on a selected cell, it is removed from selection.

This could be more intuitive for end users.

It might have been suggested in comments to #329, but I'm not sure if that's exactly the same thing.

konrad-garus avatar Apr 16 '13 11:04 konrad-garus

I've made the request for a select2 feature see https://github.com/angular-ui/angular-ui/issues/498. I've since successfully used ui-multicombo.js found at http://ngmodules.org/modules/angular_experiments. HTH John

johntom avatar Apr 16 '13 15:04 johntom

+1 for sticky selections when using checkboxes.

Why the need to hold down ctrl when using checkboxes to select rows? It would be much more intuitive for end users to just tick the checkbox to select a row, this is a common behaviour among all office apps.

When selecting rows without having a checkbox, then selecting with ctrl makes sense and behaves just like e.g. selecting files in a file manager.

buckyball avatar Apr 17 '13 13:04 buckyball

One good real life example: GMail. :-)

konrad-garus avatar Apr 17 '13 13:04 konrad-garus

This makes sense, I am out of town today but I should have some time tomorrow to take care of this.

On Wednesday, April 17, 2013, Konrad Garus wrote:

One good real life example: GMail. :-)

— Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/ng-grid/issues/344#issuecomment-16505870 .

-Tim Sweet

orneryd avatar Apr 17 '13 13:04 orneryd

I agree with buckyball.

The new behaviour is very unintuitive. Especialy when using the selectboxes in front of each row. Clicking one selectbox should never effect the state of another. That's just how selectboxes always work.

It would be nice to be able to configure this behavour:

  • Always use the ctrl-click behaviour. (current behaviour)
  • Use easy multiselect as suggesed above for the checkboxes and the current behaviour when clicking the row. (as suggested above)
  • Always use easy multiselect. (old behaviour)

martijnve avatar Apr 24 '13 09:04 martijnve

:+1: for the new behavior being unintuitive - I would at least appreciate the option to configure it as @martijnve suggests if it is possible.

Also... well... I realize the change was mentioned in the release notes but altering default behavior does not feel like a patch bump :/.

jrussell-ivantage avatar May 06 '13 21:05 jrussell-ivantage

+1, unintuitive on desktop browsers, and impossible on mobile. At least for checkboxes it must be sticky without the use of extra keys.

mokesmokes avatar May 09 '13 13:05 mokesmokes

impossible on mobile

Good point.

c0bra avatar May 09 '13 14:05 c0bra

has anything happened with this issue? I would also like to select without holding down ctrl/shift/cmd key...

oyvindj avatar Jun 03 '13 09:06 oyvindj

In the meantime just comment out line 2237 from the current (2.0.5) release: // self.toggleSelectAll(false, true); This works for me (though there may be side effects which are not affecting my use case)

mokesmokes avatar Jun 03 '13 09:06 mokesmokes

I built on mokesokes solution in an attempt to make the solution more resilient and did the following. // Attempt to enable multiselect if (!(grid.config.multiSelect && grid.config.showSelectionCheckbox)) { self.toggleSelectAll(false, true); }

This should ensure that when the checkbox selection is enabled along with multiselect that the user is able to select multiple options without requiring a ctrl or shift-click.

Hope someone find this helpful.

amhaskar avatar Jun 03 '13 14:06 amhaskar

i am working on fixing this right now. sorry for the long delay I was moving states/jobs and things have been insane.

orneryd avatar Jun 04 '13 02:06 orneryd

this should be resolved in 099c31e3a91e4f405359a3d46f0abc35b2686194

orneryd avatar Jun 04 '13 02:06 orneryd

If I understand this issue thread correctly; the original feature request was for SELECT lists to allow multiple selection without using Ctrl. This moved to a focus on check box lists and was then closed by a change that was later reverted.

I'd like to reopen this issue because the original feature is exactly what we want.

bernhard-hofmann avatar Oct 08 '14 16:10 bernhard-hofmann

@bernhard-hofmann : we can reopen against 2.x, but we should manage expectations - there are currently no developers contributing to the project whom are working on 2.x changes, so unless someone extra wants to contribute to 2.x it's unlikely to get done any time soon. But it would at least be open so that if some 2.x developers did start contributing they'd know what people wanted.

PaulL1 avatar Oct 08 '14 20:10 PaulL1