Make Some Cells Editable


I want to make cells in some, but not all, columns editable. Therefore, I think I may not be able to use obj.setCellEditable(true) unless I can prevent/deactivate the "conversion to a textbox" from happening through maybe onControlActivated and some processing (for example, if col > 2 do something).

Otherwise, I may have to obj.setCellEditable(false) and firgure out how to do it with onCellClicked, but I can't get it to work. The post at http://www.activewidgets.com/javascript.forum.8817.5/edit-cell-on-selection-not.html comes close to what I want to do, but for some reason does not work for me.

Anyone have any working code or suggestions?
Paul Tiseo
April 5,

Well, classic "stupid-looking" developer moment. I spend a couple of hours trying to figure out why the post above doesn't work for me and can't. I post trying to find maybe another solution. I go back to my script and, BAM!, I forgot to declare a var. Ugh!

However, I am still interested in knowing if onControlActivated might be another avenue. Alex?
Paul Tiseo
April 5,

you can use

obj.setCellEditable(true, 1); // allow editing in column-1 only

or even

obj.setCellEditable(true, 2, 3); // allow editing in single cell (col-2, row-3)

Alex (ActiveWidgets)
April 5,

This topic is archived.

See also:

Back to support forum