:: Forum >>

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
Tuesday, June 27, 2006
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.
Tuesday, June 27, 2006
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)
Wednesday, June 28, 2006

This topic is archived.


Back to support forum

Forum search