dhtmlxEvent on Combo cell is getting fired multiple times

Hello,

I have a grid of size 9 with ‘combo’ Cell in first column and the remaining cells are ‘ed’/‘edn’. To disable copy-paste in the combo cell I have implemented the following code:

grid.attachEvent("onEditCell", gridEditCell);
function grigEditCell(stage,rowID,cInd,nValue,oValue)
{
    if (stage==1)
    {
        if (cInd == 2)
        {
            if(this.editor.combo)
            {
               dhtmlxEvent(this.editor.combo.DOMelem_input, "keypress", allowCharOnKeyPressEvent);
               dhtmlxEvent(this.editor.combo.DOMelem_input, "paste", disableOnPaste);
            }
        }
        else
        {
            if(this.editor.obj)
            {
               dhtmlxEvent(this.editor.obj, "paste", disableOnPaste);
            }
        }
    }
}

and there is another event also

grid.attachEvent("onCellChanged", gridCellChanged);

Steps to reproduce :

  1. When I tried to paste Combo cell, the event is fired only once.
  2. I tried pasting in the other cells, the event is fired only once.
  3. Now when I go back to the Combo cell and try pasting, the event is fired multiple times.

Any help or information regarding this issue, is most welcome!

Thanks.

Please, provide a more detailed sample with allowCharOnKeyPressEvent, disableOnPaste, gridCellChanged functions and the sample of init of your grid.