3.2.0

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:
http://www.activewidgets.com/javascript.forum.13526.1/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