Opened 11 years ago

Closed 10 years ago

Last modified 9 years ago

#7486 closed defect (fixed)

Grid should support single, multiple and extended selection models

Reported by: David Schwartz Owned by: evan
Priority: high Milestone: 1.4
Component: DojoX Grid Version: 1.1.1
Keywords: ibm selection EnhancedGrid Cc:
Blocked By: Blocking:

Description

Currently, Grid supports some level of single and multiple selection. Extended selection also needs to be supported. These terms and their meaning are defined below. This issue exists only for direct selection (see ticket #7485).

Single Selection

At times, only a single row may be selected for reasons related to application design or subject domain logic. The following describes how to select a single object by interacting directly with the row.

Mouse. Click mouse selection button with pointer on row to be selected.
Keyboard. With input focus on row to be selected, press Ctrl+Spacebar; also Spacebar if spacebar is not used to type a space.
Result. De-selects currently-selected row in selection scope; selects single identified row.

Extended and Multiple Selection

Sometimes, however, users may select more than one row and on still other occasions they will most likely select multiple rows. Different approaches are taken in these two situations: extended and multiple selection, respectively.

Extended Selection. Extended selection addresses the situation where the user is most likely to select a single row but might also select additional rows. Accordingly, Extended Selection is optimized for the more frequent case: single row selection. A single row is selected by interacting directly with it as described above. Selecting subsequent, adjacent rows is accomplished as described below.

Goal. Select additional contiguous rows
Mouse. SHIFT+click on the last row
Keyboard. SHIFT+CURSOR in the direction the selection set is to be extended; stop pressing when the last row of interest is added to the selection.
Result. A range of rows is selected.

Goal. Select additional non-contiguous rows
Mouse. CTRL-click to establish an additional selection set and then SHIFT+CTRL+click to identify the last row of interest to include in the additional set
Keyboard. SHIFT+F8 establishes a mode in which the initial deselection is bypassed and the new selected rows are added or removed from the current group of selected rows. Once in the mode, cursor to the initial row in the new set and then follow the same method for selecting an initial row and extending the selection.
Result. An additional range of rows is selected.

Multiple Selection. Multiple selection addresses the situation where the user will most likely be selecting multiple rows. Selecting multiple rows is as described below.

Goal. Select multiple rows
Mouse. Click on each row of interest
Keyboard. SPACEBAR while the input focus is on a row
Result. The selection state of the row with the input focus is toggled (selected --> unselected; unselected --> selected)

Change History (12)

comment:1 Changed 11 years ago by bill

Component: Dijit - LnFDojoX Grid
Owner: set to Bryan Forbes

comment:2 Changed 11 years ago by Bryan Forbes

Milestone: tbd1.2

comment:3 Changed 11 years ago by David Schwartz

Clarification re keyboard selection techniques for Multiple Selection.

With input focus on row to be selected, press Ctrl+Spacebar; also Spacebar if spacebar is not used to type a space. To select additional contiguous rows, SHIFT+CURSOR in the direction the selection set is to be extended; stop pressing when the last row of interest is added to the selection.

comment:4 Changed 11 years ago by Bryan Forbes

Resolution: fixed
Status: newclosed

(In [14996]) fixes #7486 !strict

  • Changed modes of selection for the grid to 'none', 'single', 'multiple', 'extended'.
  • Removed most calls to grid methods in Selection.
  • Changed _Grid to connect to Selection events.

comment:5 Changed 11 years ago by David Schwartz

Resolution: fixed
Status: closedreopened

I'm assuming that the current code is available at http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_selection.html. If so, this is looking great. Now, how about cell selection?

comment:6 Changed 11 years ago by bill

Milestone: 1.21.3

since these tickets were reopened, marking milestone as 1.3 (the next uncompleted milestone) so we don't overlook them

comment:7 Changed 11 years ago by Bryan Forbes

Milestone: 1.31.4

comment:8 Changed 10 years ago by Nathan Toone

Milestone: 1.4future
Owner: changed from Bryan Forbes to Evan
Status: reopenednew

EnhancedGrid? request

comment:9 Changed 10 years ago by David Schwartz

The EDG currently supports these features.

comment:10 Changed 10 years ago by Nathan Toone

Milestone: future1.4
Resolution: fixed
Status: newclosed

comment:11 Changed 10 years ago by Nathan Toone

Keywords: EnhancedGrid added; single extended multiple grid removed

comment:12 Changed 9 years ago by bill

Owner: changed from Evan to evan
Note: See TracTickets for help on using tickets.