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 :
- When I tried to paste Combo cell, the event is fired only once.
- I tried pasting in the other cells, the event is fired only once.
- 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.