cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Row Selection in an iGrid: How does Click, Shift Click, etc. work?

Former Member
0 Kudos
284

Hi all,

Is there a source that explains the row selection functionality of the Click, Click Shift, etc for an iGrid?

Thanks,

--Amy Smith

--Haworth

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Here's a quick brain dump from what I can remember:

1) Overall, behavior of the grid's clickability is affected by the "Allow Multiple Selections", "Allow Selection", and "Allow Deselect", and "Allow Cell Selection" parameters. The function of these are self explanatory, but briefly: Allow multiple selections permits selection of more than one row, allow selection (or more specifically, unchecking this) controls whether the grid is view-only or interactive (selectable), allow deselection controls whether or not it is possible to "unselect" a row by clicking on it again, and allow cell selection controls cell-oriented versus row-oriented selectability

2) Shift-click is used to select a "range" of row values

3) Ctrl-click is used to select a discontinuous set of row values

YMMV.

Former Member
0 Kudos

Thanks Rick,

That's what I thought would happen, but here is what I am seeing:

I have an iGrid, 12.0, with

"Allow Multiple Selections", Yes

"Allow Selection" Yes

"Allow Deselect" Yes

"Allow Cell Selection" No

I was seeing this behavior and wondering if it was correct:

10 rows in the iGrid

click row 3, row 3 is selected

Shift click row 6, row 3 is unselected

Shift click row 6 again (not double click though, 2 clicks more than 5 seconds apart) rows 3,4,5,6 are selected

Is this behavior expected and I can add it to the training manual?

Thanks,

--Amy Smith

--Haworth

Former Member
0 Kudos

Hi, Amy. Sounds like the "deselection" of row 3 on shift-click is an "undesirable feature". I would leave deselection disabled (most apps won't need this anyway) and you should have more "normal" behavior.

Former Member
0 Kudos

Thanks Rick,

I do need to have deselect on. Do you have access to a 12.1 system? Could you test this for me?

Happy Weekend!

--Amy Smith

--Haworth

jcgood25
Active Contributor
0 Kudos

I agree with Rick about having AllowDeselect on being the issue that's causing this strange behavior.

12.1 does not require that 2nd click to highlight the range of rows, but in order to deselect a row you need to use the control key whereas in 12.0 you only needed the mouse.

You could also put click and drag in your users manual, click Row 3 and drag down to select the desired range. This works the same in 12.0 and 12.1.

Former Member
0 Kudos

Thanks for checking 12.1 Jeremy,

Seems to me that it is a bit inefficient to require a data refresh to unselect a row, so I am going to leave it as is and document it for the users.

Thanks again for all your help.

--Amy Smith

--Haworth

jcgood25
Active Contributor
0 Kudos

I didn't try it but instead of doing a document.APPLETNAME.updateGrid(false); ( no need to requery the data like happens with .refresh(); )

try:

document.iGrid.getGridObject().deselectAllRows();

Answers (1)

Answers (1)

Former Member
0 Kudos
Former Member
0 Kudos

Thanks Suresh,

I must be missing something though because I didn't see any relevant info in either of those links.

Thanks for the attempt!

--Amy Smith

--Haworth