setOnEditCellHandler or onEditCell

Hi, I’m using prototype and i can’t find proper documentation for ‘setOnEditCellHandler’ function, wich as i understand is the same as ‘onEditCell’ event. I tried using attachEvent(“onEditCell”, function); but it didn’t do anything and firefox error console says that function attachEvent doesn’t exist.

Anyway… The thing is: In my grid, one of the cells is a combo (“coro”), the method setOnEditCellHandler(generateTotal); calls a function that validates the cellInd and stage, and when it is on (cellInd==4 && stage==2) it performs an action… now, the problem is that after i do this, the next time i select a cell, it does the same action, and debugging on firebug i see that even though i’m selecting a different cell, it still enters the if statement because it says it is cellInd 4. Why could this be happening?. :ugeek:

what version of dhtmlxGrid do you have?
Such issue may occur if you are using very old version of dhtmlxGrid. Please update your files.

I’m new to this company and they have no documentation for me to know the version used. I understand it is an old version, the project it is used on is probably like 2 or 3 years old.

As i have read ‘setOnEditCellHandler’ is not even being used anymore, i just wanted to know if there was an explanation or a solution. Updating files may lead to a total reengineering of the whole project.

Thanks anyway. :slight_smile: