:: Home >>

Overview

Grid has built-in selection model, which supports single and multiple rows selection mode. You can specify if multiple selection is allowed in selection/multiple property:

obj.setSelectionProperty("multiple", true);

The index of the last selected row is stored in selection/index property:

var index = obj.getSelectionProperty("index");

While selection/values property returns an array of all selected rows:

var array = obj.getSelectionProperty("values");

Grid calls selectionChanged action so you can attach an action handler to process selection event.

obj.setAction("selectionChanged", myFunction);

Multiple selection is activated if the Ctrl key is pressed during mouse clicks.

Comments

15 Aug 06
Turn off selection Quidam (4)
17 May 06
How to get single value on click of any cell in the same row Ameenullah (10)
19 Mar 06
How to pass selected row Value to parent window textField? Kelley Alford (0)
31 Jan 06
how to get the value of combobox Jenny (0)
21 Dec 05
may be mistake (4)
18 Nov 05
Send selected row items to input fields in a grid loaded in php Beth (1)
3 Nov 05
How to handle a double click event???? (1)
27 Oct 05
Defaulting to a TEXT field Edward Rice (3)
13 Oct 05
example to pass a cell value to text input andra (3)
How to I *set* a selected row. Clinton (2)
15 Aug 05
Ctrl+c Vicente (3)
29 Jul 05
Adding record Agus (3)
23 Jun 05
Select cells Marco Quesada (0)

Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5