3.0.5

Enter Edit Mode After Selecting A Cell

After selecting a single cell in this fashion:

obj.setSelectedColumns([3]);
obj.setSelectedRows([3]);

How would I automatically enter Edit mode?
ericj
December 5,
http://www.activewidgets.com/javascript.forum.14714.1/edit-with-single-click.html
Alex (ActiveWidgets)
December 6,
Alex:

The means you gave me for editing a cell on click is as follows:

obj.onCellClicked = function(event, col, row){
this.raiseEvent("editCurrentCell", event, col, row);
}

This sets the onCellClicked property for the entire object. In my scenario, I need to enter edit mode on an ad hoc basis for a single cell, that is, not globally, but serially.

So I would select a cell with:

obj.setSelectedColumns([3]);
obj.setSelectedRows([3]);

How would I then enter edit mode in Cell(3,3) ?

Thanks much.

ericj
December 13,
Try:

obj.setCurrentColumn(col);
    obj.setCurrentRow(row);
    obj.raiseEvent("editCurrentCell", event, col, row);


Ankur
Ankur Motreja
December 13,

This topic is archived.

See also:


Back to support forum