:: Forum >>
Make Some Cells Editable
All:
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
Wednesday, April 5, 2006
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
Wednesday, April 5, 2006
Paul,
you can use
obj.setCellEditable(true, 1);
or even
obj.setCellEditable(true, 2, 3);
Alex (ActiveWidgets)
Wednesday, April 5, 2006
This topic is archived.
Back to support forum
Forum search