:: Forum >>

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
Tuesday, December 5, 2006
http://www.activewidgets.com/javascript.forum.14714.1/edit-with-single-click.html
Alex (ActiveWidgets)
Wednesday, December 6, 2006
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
Wednesday, December 13, 2006
Try:

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


Ankur
Ankur Motreja
Wednesday, December 13, 2006

This topic is archived.


Back to support forum

Forum search