Hi,
I have created a grid which has a column with type “link”. Now I enabled the function to select cells for copy&paste. This works.
But when I paste the column with type link I also get the javascript stuff behind the text:
abc^javascript:openDetails(000000000105222237)
If I use this option:
grid.forceLabelSelection(true);
Which I thought would solve my problem, I only geht the javascript stuff:
javascript:openDetails(000000000105222237)
My expected result with this option was
abc
Is this a bug?
My code:
grid= dhxOverview.attachGrid();
grid.setIconsPath('./dhtmlx/imgs/');
grid.enableMultiselect(true);
grid.enableCellIds(true);
grid.attachEvent("onRowCreated", doOnRowcreated);
grid.attachEvent("onKeyPress", onKeyPressed);
grid.enableBlockSelection();
grid.forceLabelSelection(true); //copy&paste only visible text..
grid.init();
grid.parse(loader.xmlDoc.responseText);
....
function onKeyPressed(code, ctrl, shift) {
if (code == 67 && ctrl) {
if (!grid._selectionArea)
return alert("You need to select a block area in grid first");
grid.setCSVDelimiter("\t");
grid.copyBlockToClipboard();
}
if (code == 86 && ctrl) {
grid.pasteBlockFromClipboard();
}
return true;
}