:: Documentation >>

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

Turn off selection Quidam (4)
How to get single value on click of any cell in the same row Ameenullah (10)
How to pass selected row Value to parent window textField? Kelley Alford (0)
how to get the value of combobox Jenny (0)
may be mistake (4)
Send selected row items to input fields in a grid loaded in php Beth (1)
How to handle a double click event???? (1)
Defaulting to a TEXT field Edward Rice (3)
example to pass a cell value to text input andra (3)
How to I *set* a selected row. Clinton (2)
Ctrl+c Vicente (3)
Adding record Agus (3)
Select cells Marco Quesada (0)

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