Ctrl-C Ctrl-V in an exteded editable grid.
I use the following code to copy and paste in an editable extended aw grid.
The problem is that the grid totally frozes after the ctrl-v.
obj.setEvent("onkeyup", function(item){
if(event.ctrlKey){
if(event.keyCode==67){
var c = obj.getCurrentColumn();
var r = obj.getCurrentRow();
document.all.txtCopia.value = obj.getRowTemplate(r).getItemTemplate(c).getCellProperty('text');}
if(event.keyCode==86){
var c = obj.getCurrentColumn();
var r = obj.getCurrentRow();
obj.getCellTemplate(c,r).setCellProperty('value',document.all.txtCopia.value);
obj.getCellTemplate(c,r).setCellProperty('text',document.all.txtCopia.value);
obj.getCellTemplate(c,r).refresh();
}
}
});
Anyone could help me?
Thank you in advance.
The problem is that the grid totally frozes after the ctrl-v.
obj.setEvent("onkeyup", function(item){
if(event.ctrlKey){
if(event.keyCode==67){
var c = obj.getCurrentColumn();
var r = obj.getCurrentRow();
document.all.txtCopia.value = obj.getRowTemplate(r).getItemTemplate(c).getCellProperty('text');}
if(event.keyCode==86){
var c = obj.getCurrentColumn();
var r = obj.getCurrentRow();
obj.getCellTemplate(c,r).setCellProperty('value',document.all.txtCopia.value);
obj.getCellTemplate(c,r).setCellProperty('text',document.all.txtCopia.value);
obj.getCellTemplate(c,r).refresh();
}
}
});
Anyone could help me?
Thank you in advance.
May 22,