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

multiselect seems broken

Open mxreppy opened this issue 13 years ago • 7 comments

Here's a plunkr:

http://plnkr.co/edit/TGIpIY?p=preview

I've set the data's primary key, multiSelect, enableRowSelection, showSelectionCheckbox and selection of a row seems to disable the selection of the previous row. Am I missing an option? I'm pretty sure the plunkr is hitting the grid latest build on GitHub.

I set a breakpoint in the selection provider ChangeSelection method and that seemed to do the right thing. I think the previous row selection was lost in a digest operation later on.

mxreppy avatar Apr 11 '13 17:04 mxreppy

the behavior of the multiselect has changed. to multi-select you need to use the shift or ctrl keys.

orneryd avatar Apr 11 '13 19:04 orneryd

oh. I think you said in another issue that you don't have access to a Mac. MacOS does not send control-click as control-left click, but rather as right click :-(

So I can shift-click to select a range, but seem to have no good UX for random multi row select.

Could we add in an option for the old style grid multi-selection or did that lead to other problems?

mxreppy avatar Apr 11 '13 19:04 mxreppy

I'd like to second that request. I am running into this exact issue right now. I dont think its intuitive for user's to understand that they need to hit the control key to select more than one row. In my case, I'm building a contact importer where lots of email addresses will show up in the grid. I want the user to be able to swiftly select items without having to select all of them (via the checkbox at the header).

BTW: great stuff!

Thanks

srour avatar Apr 15 '13 05:04 srour

@timothyswt Related to this, I don't seem to be able to "de-select" a row any more unless I hold Ctrl and click on the row again. If I just click on it repeatedly, it just stays selected.

Siyfion avatar Apr 15 '13 14:04 Siyfion

there is a grid option that needs to be set to false. //Prevent unselections when in single selection mode. keepLastSelected: true,

On Mon, Apr 15, 2013 at 7:26 AM, Simon Mansfield [email protected]:

@timothyswt https://github.com/timothyswt Related to this, I don't seem to be able to "de-select" a row any more unless I hold Ctrl and click on the row again. If I just click on it repeatedly, it just stays selected.

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

-Tim Sweet

orneryd avatar Apr 15 '13 18:04 orneryd

I really like how selecting is done from my own perspective but I don't think it's intuitive for our users. Selecting now is great for power users but not very friendly to average Joe.

mjp0 avatar Apr 16 '13 06:04 mjp0

@timothyswt If only it were that simple, I have that flag set to false, yet it still won't let me de-select without a Ctrl press.

Siyfion avatar Apr 16 '13 08:04 Siyfion