3.0 beta 2

selecting a row in a grid

One would think this would really be easy but the function provided
don't seem to do anything:

grid.setSelectedRows([rthRow]);

In fact all I want to do is to select a row...! I.e. select the row as if a user clicked on it. (setcurrentRow() seems to set the current row correctly but it is not highlighted to show selected!)


jack mansons
June 27,
I was checking out the same thing. You can find what you need at this page:
/datagrid.13526/toggle-between-row-selection-and.html

The command is:
this.setSelectionMode("single-cell");

It works like a charm.
June 27,
The default selection mode is "single-cell". To allow row selection you should set it to "single-row" or "multi-row".

obj.setSelectionMode("single-row");
obj.setSelectedRows([1]);
Alex (ActiveWidgets)
June 28,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.